diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-02-02 16:20:17 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-03-29 11:44:22 +0200 |
commit | cd12dcad1a482ea805f8dcc58b364e9c6cddc667 (patch) | |
tree | e1aa29fa7d6dd29064abbdbd7efc63be448cf4bc /lib/scripts/events.js | |
parent | 569a001959f65aea2c0e7cd3dd5b541cac0e9e58 (diff) | |
download | dokuwiki-cd12dcad1a482ea805f8dcc58b364e9c6cddc667.tar.gz dokuwiki-cd12dcad1a482ea805f8dcc58b364e9c6cddc667.zip |
JavaScript syntax fixes
Diffstat (limited to 'lib/scripts/events.js')
-rw-r--r-- | lib/scripts/events.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/scripts/events.js b/lib/scripts/events.js index 2ea619085..df46cc1cf 100644 --- a/lib/scripts/events.js +++ b/lib/scripts/events.js @@ -107,8 +107,8 @@ window.fireoninit = function() { } // for Internet Explorer (using conditional comments) - /*@cc_on @*/ - /*@if (@_win32) + /*@cc_on + @if (@_win32) document.write("<scr" + "ipt id=\"__ie_init\" defer=\"true\" src=\"//:\"><\/script>"); var script = document.getElementById("__ie_init"); script.onreadystatechange = function() { @@ -116,7 +116,7 @@ window.fireoninit = function() { window.fireoninit(); // call the onload handler } }; - /*@end @*/ + @end @*/ // for Safari if (/WebKit/i.test(navigator.userAgent)) { // sniff @@ -176,5 +176,5 @@ function bind (fnc) { var args = Array.prototype.slice.call(arguments, 1); return function() { return fnc.apply(this, args); - } + }; } |