"undefined" is not a reserved keyword #1

Merged
merged 1 commit into from Dec 5, 2011
View
2 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);