Browse Source

jshint

pull/2/head
gorhill 10 years ago
parent
commit
f7c2e68887
  1. 6
      src/js/dashboard.js
  2. 2
      src/js/info.js
  3. 2
      src/js/messaging-handlers.js
  4. 3
      src/js/settings.js
  5. 2
      src/js/tab.js
  6. 4
      src/js/udom.js

6
src/js/dashboard.js

@ -19,6 +19,8 @@
Home: https://github.com/gorhill/uMatrix
*/
/* global uDom */
/******************************************************************************/
(function() {
@ -30,13 +32,13 @@ var loadDashboardPanel = function(hash) {
uDom('.tabButton').forEach(function(button){
button.toggleClass('selected', button.attr('data-dashboard-panel-url') === url);
});
}
};
/******************************************************************************/
var onTabClickHandler = function() {
loadDashboardPanel(window.location.hash);
}
};
/******************************************************************************/

2
src/js/info.js

@ -19,6 +19,8 @@
Home: https://github.com/gorhill/uMatrix
*/
/* global messaging, uDom */
/******************************************************************************/
(function() {

2
src/js/messaging-handlers.js

@ -444,7 +444,7 @@ var onMessage = function(request, sender, callback) {
response = {
temporaryRules: µm.tMatrix.toString(),
permanentRules: µm.pMatrix.toString()
}
};
break;
case 'setUserRules':

3
src/js/settings.js

@ -19,6 +19,9 @@
Home: https://github.com/gorhill/uMatrix
*/
/* global messaging, uDom */
/* jshint multistr: true */
/******************************************************************************/
(function() {

2
src/js/tab.js

@ -78,7 +78,7 @@
return 'http://' + uri.scheme + '-scheme/';
}
return '';
}
};
/******************************************************************************/

4
src/js/udom.js

@ -229,9 +229,11 @@ DOMList.prototype.toArray = function() {
/******************************************************************************/
DOMList.prototype.forEach = function(fn) {
for ( var i = 0; i < this.nodes.length; i++ ) {
var n = this.nodes.length;
for ( var i = 0; i < n; i++ ) {
fn(this.at(i), i);
}
return this;
};
/******************************************************************************/

Loading…
Cancel
Save