[Pkg-mozext-commits] [adblock-plus] 02/74: Issue 2233 - Adapted array type annotations for JsDoc 3
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 12:07:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit ec177bbac4e5661cd70f9f4cd038b522da740f23
Author: Sebastian Noack <sebastian at adblockplus.org>
Date: Tue Mar 31 00:50:10 2015 +0200
Issue 2233 - Adapted array type annotations for JsDoc 3
---
lib/filterClasses.js | 8 ++++----
lib/filterNotifier.js | 2 +-
lib/objectTabs.js | 4 ++--
lib/subscriptionClasses.js | 6 +++---
lib/utils.js | 2 +-
5 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/lib/filterClasses.js b/lib/filterClasses.js
index 330e412..80000ef 100644
--- a/lib/filterClasses.js
+++ b/lib/filterClasses.js
@@ -44,13 +44,13 @@ Filter.prototype =
/**
* Filter subscriptions the filter belongs to
- * @type Array of Subscription
+ * @type Subscription[]
*/
subscriptions: null,
/**
* Serializes the filter to an array of strings for writing out on the disk.
- * @param {Array of String} buffer buffer to push the serialization results into
+ * @param {string[]} buffer buffer to push the serialization results into
*/
serialize: function(buffer)
{
@@ -388,7 +388,7 @@ ActiveFilter.prototype =
/**
* Array containing public keys of websites that this filter should apply to
- * @type Array of String
+ * @type string[]
*/
sitekeys: null,
@@ -585,7 +585,7 @@ RegExpFilter.prototype =
/**
* Array containing public keys of websites that this filter should apply to
- * @type Array of String
+ * @type string[]
*/
get sitekeys()
{
diff --git a/lib/filterNotifier.js b/lib/filterNotifier.js
index 80d6769..c9578f5 100644
--- a/lib/filterNotifier.js
+++ b/lib/filterNotifier.js
@@ -22,7 +22,7 @@
/**
* List of registered listeners
- * @type Array of function(action, item, newValue, oldValue)
+ * @type function[]
*/
let listeners = [];
diff --git a/lib/objectTabs.js b/lib/objectTabs.js
index b45dc6d..ec29dd2 100644
--- a/lib/objectTabs.js
+++ b/lib/objectTabs.js
@@ -75,7 +75,7 @@ var objTabs =
/**
* Windows that the window event handler is currently registered for.
- * @type Array of Window
+ * @type Window[]
*/
windowListeners: null,
@@ -354,7 +354,7 @@ var objTabs =
/**
* Calculates element's position relative to the top frame and considering
* clipping due to scrolling.
- * @return {left: Number, top: Number, right: Number, bottom: Number}
+ * @return {{left: Number, top: Number, right: Number, bottom: Number}}
*/
_getElementPosition: function(/**Element*/ element)
{
diff --git a/lib/subscriptionClasses.js b/lib/subscriptionClasses.js
index 6b0ff63..5590e2a 100644
--- a/lib/subscriptionClasses.js
+++ b/lib/subscriptionClasses.js
@@ -56,7 +56,7 @@ Subscription.prototype =
/**
* Filters contained in the filter subscription
- * @type Array of Filter
+ * @type Filter[]
*/
filters: null,
@@ -123,7 +123,7 @@ Subscription.prototype =
/**
* Serializes the subscription to an array of strings for writing out on the disk.
- * @param {Array of String} buffer buffer to push the serialization results into
+ * @param {string[]} buffer buffer to push the serialization results into
*/
serialize: function(buffer)
{
@@ -272,7 +272,7 @@ SpecialSubscription.prototype =
/**
* Filter types that should be added to this subscription by default
* (entries should correspond to keys in SpecialSubscription.defaultsMap).
- * @type Array of String
+ * @type string[]
*/
defaults: null,
diff --git a/lib/utils.js b/lib/utils.js
index 34084ee..949460f 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -253,7 +253,7 @@ let Utils = exports.Utils =
/**
* Generates filter subscription checksum.
*
- * @param {Array of String} lines filter subscription lines (with checksum line removed)
+ * @param {string[]} lines filter subscription lines (with checksum line removed)
* @return {String} checksum or null
*/
generateChecksum: function(lines)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list