aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/events.js
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-02-02 16:20:17 +0100
committerAdrian Lang <lang@cosmocode.de>2010-03-29 11:44:22 +0200
commitcd12dcad1a482ea805f8dcc58b364e9c6cddc667 (patch)
treee1aa29fa7d6dd29064abbdbd7efc63be448cf4bc /lib/scripts/events.js
parent569a001959f65aea2c0e7cd3dd5b541cac0e9e58 (diff)
downloaddokuwiki-cd12dcad1a482ea805f8dcc58b364e9c6cddc667.tar.gz
dokuwiki-cd12dcad1a482ea805f8dcc58b364e9c6cddc667.zip
JavaScript syntax fixes
Diffstat (limited to 'lib/scripts/events.js')
-rw-r--r--lib/scripts/events.js8
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);
- }
+ };
}