Permalink
Browse files

Fixing scope of event callbacks (Bug #91 ).

  • Loading branch information...
1 parent 6b8dcbe commit 66f79da193582bbd21507d80a2e5297de56668a3 @gimite committed Sep 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 web_socket.js
View
@@ -149,7 +149,7 @@
events[i](event);
}
var handler = this["on" + event.type];
- if (handler) handler(event);
+ if (handler) handler.apply(this, [event]);
};
/**

0 comments on commit 66f79da

Please sign in to comment.