summaryrefslogtreecommitdiffstats
path: root/priv/bullet.js
diff options
context:
space:
mode:
authorcy <[email protected]>2013-06-20 18:49:51 +0200
committercy <[email protected]>2013-09-05 20:36:03 +0200
commit10b10fc429a6c0326cf7e340111cc7e404afbf8d (patch)
tree07e4d85a32e10848960a76d80d03ba675421e7ef /priv/bullet.js
parent9719950324ca06c281dfd7350cf4ca9089451cfb (diff)
downloadbullet-10b10fc429a6c0326cf7e340111cc7e404afbf8d.tar.gz
bullet-10b10fc429a6c0326cf7e340111cc7e404afbf8d.tar.bz2
bullet-10b10fc429a6c0326cf7e340111cc7e404afbf8d.zip
Fix undefined object error on IE
Diffstat (limited to 'priv/bullet.js')
-rw-r--r--priv/bullet.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/bullet.js b/priv/bullet.js
index 50686f6..1a53998 100644
--- a/priv/bullet.js
+++ b/priv/bullet.js
@@ -237,7 +237,7 @@
// Hard disconnect, inform the user and retry later
delay = delayDefault;
tn = 0;
- stream.ondisconnect();
+ stream && stream.ondisconnect();
setTimeout(function(){init();}, delayMax);
return false;
}