diff options
| author | Edward O'Connor | 2011-04-22 12:04:21 -0700 |
|---|---|---|
| committer | Edward O'Connor | 2011-04-22 12:04:21 -0700 |
| commit | d528040e0f8f5000d8550ea94d6848fefaa3718d (patch) | |
| tree | 4016da8f42c137cebc165e0e678bc15d0f3969b9 | |
| parent | 08f0c4f8e652bc425b9e2338cd49abc4cbba05e7 (diff) | |
| download | ffffallback-d528040e0f8f5000d8550ea94d6848fefaa3718d.tar.bz2 | |
Don't treat a RegExp literal as funcallable. Fixes bookmarklet in WebKit/JSC nightlies.
| -rw-r--r-- | bookmarklet/ffffallback.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bookmarklet/ffffallback.js b/bookmarklet/ffffallback.js index 38fd2d4..8eddd1a 100644 --- a/bookmarklet/ffffallback.js +++ b/bookmarklet/ffffallback.js @@ -407,7 +407,7 @@ // Thanks to Dustin Diaz for this clever hack // http://dustindiaz.com/smallest-domready-ever - if(/in/(document.readyState)) { + if(/in/.test(document.readyState)) { window.addEventListener('load', function() { $.init(); }, false); |
