pull/2/head
gorhill 10 years ago
parent 4b4dc3c0db
commit f7c2e68887

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

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

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

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

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

@ -229,9 +229,11 @@ DOMList.prototype.toArray = function() {
/******************************************************************************/ /******************************************************************************/
DOMList.prototype.forEach = function(fn) { 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); fn(this.at(i), i);
} }
return this;
}; };
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save