fixing 'off' case where Emitter is mixed into the class

This commit is contained in:
Yotam Mann 2015-11-11 12:13:36 -05:00
parent c908d9317d
commit 4f9871cd30

View file

@ -55,7 +55,7 @@ define(["Tone/core/Tone"], function (Tone) {
for (var ev = 0; ev < events.length; ev++){
event = events[ev];
if (this._events.hasOwnProperty(event)){
if (this.isUndef(callback)){
if (Tone.prototype.isUndef(callback)){
this._events[event] = [];
} else {
var eventList = this._events[event];