aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2014-08-19 23:01:36 -0400
committergorhill <rhill@raymondhill.net>2014-08-19 23:01:36 -0400
commite032b7aab92db3c9cdd27e06bb7fd75f6e323ac2 (patch)
treed331dff3aca715d8d401571b727283770922b496 /js
parent1deae3bfe0c1379efb869b94a30d1a731292cfab (diff)
downloaduBlock-e032b7aab92db3c9cdd27e06bb7fd75f6e323ac2.zip
uBlock-e032b7aab92db3c9cdd27e06bb7fd75f6e323ac2.tar.gz
uBlock-e032b7aab92db3c9cdd27e06bb7fd75f6e323ac2.tar.bz2
code review (lot more needed), jshint
Diffstat (limited to 'js')
-rw-r--r--js/3p-filters.js2
-rw-r--r--js/messaging.js2
-rw-r--r--js/start.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/js/3p-filters.js b/js/3p-filters.js
index cb3da21..cfff9e1 100644
--- a/js/3p-filters.js
+++ b/js/3p-filters.js
@@ -319,7 +319,7 @@ var onListLinkClicked = function(ev) {
/******************************************************************************/
-var onPurgeClicked = function(ev) {
+var onPurgeClicked = function() {
var button = uDom(this);
var li = button.parent();
var href = li.find('a').first().attr('href');
diff --git a/js/messaging.js b/js/messaging.js
index 86c2309..95c175d 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -19,6 +19,8 @@
Home: https://github.com/gorhill/uBlock
*/
+/* global chrome, µBlock */
+
// So there might be memory leaks related to the direct use of sendMessage(),
// as per https://code.google.com/p/chromium/issues/detail?id=320723. The issue
// is not marked as resolved, and the last message from chromium dev is:
diff --git a/js/start.js b/js/start.js
index aef9f4a..8f140ab 100644
--- a/js/start.js
+++ b/js/start.js
@@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock
*/
-// ORDER IS IMPORTANT
+/* global µBlock */
/******************************************************************************/