Permalink
Browse files

Merge pull request #1 from cybear/master

"undefined" is not a reserved keyword
  • Loading branch information...
2 parents 6b15fc6 + a07a9b3 commit 37f2b84376a8cf9e5fded3ae34640e2339ed613d @azer committed Dec 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/observer.js
View
@@ -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);

0 comments on commit 37f2b84

Please sign in to comment.