[Pkg-mozext-commits] [adblock-plus] 30/41: Added missing semicolons and other trivial fixes.
David Prévot
taffit at moszumanska.debian.org
Wed Mar 18 18:21:39 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 113c1d978e2c8f8839f4ef71e152f25ef75da7a9
Author: Dave Barker <kzar at kzar.co.uk>
Date: Sat Mar 7 02:00:31 2015 +0100
Added missing semicolons and other trivial fixes.
---
lib/contentPolicy.js | 2 +-
lib/elemHideHitRegistration.js | 2 +-
lib/filterClasses.js | 12 ++++++------
lib/subscriptionClasses.js | 14 +++++++-------
4 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/lib/contentPolicy.js b/lib/contentPolicy.js
index f54ac1c..e153328 100644
--- a/lib/contentPolicy.js
+++ b/lib/contentPolicy.js
@@ -130,7 +130,7 @@ let Policy = exports.Policy =
onShutdown.add(function()
{
Utils.styleService.unregisterSheet(collapseStyle, Ci.nsIStyleSheetService.USER_SHEET);
- })
+ });
},
/**
diff --git a/lib/elemHideHitRegistration.js b/lib/elemHideHitRegistration.js
index d32bd74..74661a9 100644
--- a/lib/elemHideHitRegistration.js
+++ b/lib/elemHideHitRegistration.js
@@ -70,7 +70,7 @@ let AboutHandler = exports.AboutHandler =
newChannel: function(uri)
{
- let match = /\?(\d+)/.exec(uri.path)
+ let match = /\?(\d+)/.exec(uri.path);
if (!match)
throw Cr.NS_ERROR_FAILURE;
diff --git a/lib/filterClasses.js b/lib/filterClasses.js
index 40cecd5..1c990c1 100644
--- a/lib/filterClasses.js
+++ b/lib/filterClasses.js
@@ -109,7 +109,7 @@ Filter.fromText = function(text)
Filter.knownFilters[ret.text] = ret;
return ret;
-}
+};
/**
* Deserializes a filter
@@ -130,7 +130,7 @@ Filter.fromObject = function(obj)
ret._lastHit = parseInt(obj.lastHit) || 0;
}
return ret;
-}
+};
/**
* Removes unnecessary whitespaces from filter text, will only return null if
@@ -157,7 +157,7 @@ Filter.normalize = function(/**String*/ text) /**String*/
}
else
return text.replace(/\s/g, "");
-}
+};
/**
* Class for invalid filters
@@ -725,7 +725,7 @@ RegExpFilter.fromText = function(text)
{
return new InvalidFilter(origText, e);
}
-}
+};
/**
* Maps type strings like "SCRIPT" or "OBJECT" to bit masks
@@ -808,7 +808,7 @@ exports.WhitelistFilter = WhitelistFilter;
WhitelistFilter.prototype =
{
__proto__: RegExpFilter.prototype
-}
+};
/**
* Base class for element hiding filters
@@ -908,7 +908,7 @@ ElemHideBase.fromText = function(text, domain, isException, tagName, attrRules,
return new ElemHideException(text, domain, selector);
else
return new ElemHideFilter(text, domain, selector);
-}
+};
/**
* Class for element hiding filters
diff --git a/lib/subscriptionClasses.js b/lib/subscriptionClasses.js
index 7a2fff3..6b0ff63 100644
--- a/lib/subscriptionClasses.js
+++ b/lib/subscriptionClasses.js
@@ -122,7 +122,7 @@ Subscription.prototype =
},
/**
- * Serializes the filter to an array of strings for writing out on the disk.
+ * 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
*/
serialize: function(buffer)
@@ -176,7 +176,7 @@ Subscription.fromURL = function(url)
{
return new SpecialSubscription(url);
}
-}
+};
/**
* Deserializes a subscription
@@ -250,7 +250,7 @@ Subscription.fromObject = function(obj)
result._disabled = (obj.disabled == "true");
return result;
-}
+};
/**
* Class for special filter subscriptions (user's filters)
@@ -329,7 +329,7 @@ SpecialSubscription.create = function(title)
{
url = "~user~" + Math.round(Math.random()*1000000);
} while (url in Subscription.knownSubscriptions);
- return new SpecialSubscription(url, title)
+ return new SpecialSubscription(url, title);
};
/**
@@ -425,7 +425,7 @@ RegularSubscription.prototype =
};
/**
- * Class for filter subscriptions updated by externally (by other extension)
+ * Class for filter subscriptions updated externally (by other extension)
* @param {String} url see Subscription()
* @param {String} [title] see Subscription()
* @constructor
@@ -451,7 +451,7 @@ ExternalSubscription.prototype =
};
/**
- * Class for filter subscriptions updated by externally (by other extension)
+ * Class for filter subscriptions updated externally (by other extension)
* @param {String} url see Subscription()
* @param {String} [title] see Subscription()
* @constructor
@@ -562,7 +562,7 @@ DownloadableSubscription.prototype =
* @type Boolean
*/
upgradeRequired: false,
-
+
/**
* Number indicating how often the object was downloaded.
* @type Number
--
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