Changeset 680

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

function(param)return-value not supported in Firefox 1.5

Files:

Legend:

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

    r679 r680  
    440440  } 
    441441 
    442   function scriptsMatching(urls) 
    443     GM_getConfig().getMatchingScripts( 
    444       function(script) urls.some(function(url) script.matchesURL(url)) 
     442  function scriptsMatching(urls) { 
     443    return GM_getConfig().getMatchingScripts( 
     444      function(script) { 
     445        return urls.some(function(url) { return script.matchesURL(url); }); 
     446      } 
    445447    ); 
     448  } 
    446449 
    447450  function appendScriptToPopup(script) { 
  • branches/config-service/src/chrome/chromeFiles/content/config.js

    r679 r680  
    372372  }, 
    373373 
    374   get scripts() this._scripts.concat()
    375   getMatchingScripts: function(testFunc) this._scripts.filter(testFunc) 
     374  get scripts() { return this._scripts.concat(); }
     375  getMatchingScripts: function(testFunc) { return this._scripts.filter(testFunc); } 
    376376}; 
    377377 
     
    401401Script.prototype = { 
    402402  matchesURL: function(url) { 
    403     function test(page) convert2RegExp(page).test(url); 
     403    function test(page) { return convert2RegExp(page).test(url); } 
    404404    return this._includes.some(test) && !this._excludes.some(test); 
    405405  }, 
  • branches/config-service/src/components/greasemonkey.js

    r679 r680  
    232232  initScripts: function(url) { 
    233233    return GM_getConfig().getMatchingScripts( 
    234       function (script) script.enabled && script.matchesURL(url) 
     234      function (script) { return script.enabled && script.matchesURL(url); } 
    235235    ); 
    236236  },