From a07a9b3db9f9d64dcc92bb5b08ec447c6aa124dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20So=CC=88derqvist?= Date: Mon, 5 Dec 2011 12:41:21 +0100 Subject: [PATCH] Undefined is not a reserved keyword --- lib/observer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/observer.js b/lib/observer.js index fa35f7c..3d496ef 100644 --- a/lib/observer.js +++ b/lib/observer.js @@ -26,7 +26,7 @@ EventBroker.prototype.publish = function(subject){ var subscribers = this.get(subject), args = Array.prototype.slice.call(arguments,1); - args.splice(0,0, undefined); + args.splice(0,0, null); for(var i = -1, len=subscribers.length; ++i < len; ){ setTimeout(Function.prototype.bind.apply(subscribers[i], args), 0);