Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Define a general purpose memoize decorator, use it for GM_isGreasemonkeyable() and convert2RegExp().
  • Loading branch information
Anthony Lieuallen authored and arantius committed May 8, 2010
1 parent cb8e23d commit f535500
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/utils.js
Expand Up @@ -312,6 +312,7 @@ function GM_isGreasemonkeyable(url) {

return false;
}
GM_isGreasemonkeyable = GM_memoize(GM_isGreasemonkeyable);

function GM_getEnabled() {
return GM_prefRoot.getValue("enabled", true);
Expand Down

0 comments on commit f535500

Please sign in to comment.