diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-05-24 18:05:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-05-24 18:05:16 -0700 |
commit | a33bd79873b6872c7fab3fa4992ef9749f2c0aa5 (patch) | |
tree | 4bb7dff7b38ba9c33e0d638f2db982e70fe7f77d /src | |
parent | 3ed4980b54fd54b0be9d21f7d5dce7f61e6f7d44 (diff) |
modify read() detection for closure compiler
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/preamble.js b/src/preamble.js index 4101fc72..e05e1e95 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -386,9 +386,7 @@ var unSign = {{{ unSign.toString() }}} var reSign = {{{ reSign.toString() }}} // Use console read if available, otherwise we are in a browser, use an XHR -try { - read; -} catch(e) { +if (!this['read']) { this['read'] = function(url) { // TODO: use mozResponseArrayBuffer/responseStream/etc. if available var xhr = new XMLHttpRequest(); |