[Pkg-javascript-commits] [sockjs-client] 104/434: Don't run a EventEmitter callback if it's set to null
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository sockjs-client.
commit 15a96edc5ecb2fdf373e16bcc012a3c5420057d7
Author: Marek Majkowski <majek04 at gmail.com>
Date: Thu Aug 25 17:10:57 2011 +0100
Don't run a EventEmitter callback if it's set to null
---
lib/reventtarget.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/reventtarget.js b/lib/reventtarget.js
index d5bc526..a88ead0 100644
--- a/lib/reventtarget.js
+++ b/lib/reventtarget.js
@@ -28,7 +28,7 @@ REventTarget.prototype.removeEventListener = function (eventType, listener) {
REventTarget.prototype.dispatchEvent = function (event) {
var t = event.type;
var args = Array.prototype.slice.call(arguments, 0);
- if (typeof this['on'+t] !== 'undefined') {
+ if (this['on'+t]) {
this['on'+t].apply(this, args);
}
if (this._listeners && t in this._listeners) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list