Skip to content

Commit

Permalink
Fix Firefox 3.6. addEventListener useCapture parameter is not optiona…
Browse files Browse the repository at this point in the history
…l on old firefox.
  • Loading branch information
n1mmy committed May 11, 2013
1 parent e0573b6 commit 9b74af5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/livedata/stream_client_sockjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Meteor._DdpClientStream = function (url) {
// Listen to global 'online' event if we are running in a browser.
// (IE8 does not support addEventListener)
if (typeof window !== 'undefined' && window.addEventListener)
window.addEventListener("online", _.bind(self._online, self));
window.addEventListener("online", _.bind(self._online, self),
false /* useCapture. make FF3.6 happy. */);

//// Kickoff!
self._launchConnection();
Expand Down

0 comments on commit 9b74af5

Please sign in to comment.