Skip to content

Commit

Permalink
Merge pull request #1 from cybear/master
Browse files Browse the repository at this point in the history
"undefined" is not a reserved keyword
  • Loading branch information
E. Azer Koçulu committed Dec 5, 2011
2 parents 6b15fc6 + a07a9b3 commit 37f2b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/observer.js
Expand Up @@ -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);
Expand Down

0 comments on commit 37f2b84

Please sign in to comment.