lib/js/event_emitter.js in sinatra-websocketio-0.1.3 vs lib/js/event_emitter.js in sinatra-websocketio-0.1.4
- old
+ new
@@ -1,14 +1,14 @@
-// event_emitter.js v0.0.5
-// https://github.com/shokai/EventEmitter.js
+// event_emitter.js v0.0.7
+// https://github.com/shokai/event_emitter.js
// (c) 2013 Sho Hashimoto <hashimoto@shokai.org>
// The MIT License
var EventEmitter = function(){
var self = this;
this.apply = function(target, prefix){
if(!prefix) prefix = "";
for(var func in self){
- if(self.hasOwnProperty(func)){
+ if(self.hasOwnProperty(func) && func !== "apply"){
target[prefix+func] = this[func];
}
}
};
this.__events = new Array();