Fix EventEmitter mixin
This commit is contained in:
parent
a617f3dace
commit
95c14fa97d
|
@ -118,7 +118,7 @@ ModelBuilder.prototype.define = function defineClass(className, properties, sett
|
|||
// mix in EventEmitter (don't inherit from)
|
||||
var events = new EventEmitter();
|
||||
for (var f in EventEmitter.prototype) {
|
||||
if (typeof EventEmitter.prototype[f]) {
|
||||
if (typeof EventEmitter.prototype[f] === 'function') {
|
||||
ModelClass[f] = events[f].bind(events);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue