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

@ -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);
}
};
/******************************************************************************/

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

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

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

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

@ -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