Changeset 682

Show
Ignore:
Timestamp:
03/14/08 14:25:56 (9 months ago)
Author:
ma..@jesperkristensen.dk
Message:

fix indentation + remove commented out code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/config-service/src/chrome/chromeFiles/content/browser.js

    r681 r682  
    464464 
    465465  var popup = aEvent.target; 
    466   //***var url = getBrowser().contentWindow.document.location.href; 
    467466  var tail = document.getElementById("gm-status-no-scripts-sep"); 
    468467 
  • branches/config-service/src/chrome/chromeFiles/content/config.js

    r680 r682  
    401401Script.prototype = { 
    402402  matchesURL: function(url) { 
    403     function test(page) { return convert2RegExp(page).test(url); } 
     403    function test(page) { 
     404      return convert2RegExp(page).test(url); 
     405    } 
     406 
    404407    return this._includes.some(test) && !this._excludes.some(test); 
    405408  }, 
  • branches/config-service/src/components/greasemonkey.js

    r680 r682  
    231231 
    232232  initScripts: function(url) { 
    233     return GM_getConfig().getMatchingScripts( 
    234       function (script) { return script.enabled && script.matchesURL(url); } 
    235     ); 
     233    function testMatch(script) { 
     234      return script.enabled && script.matchesURL(url); 
     235    } 
     236 
     237    return GM_getConfig().getMatchingScripts(testMatch); 
    236238  }, 
    237239