mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
fixing 'off' case where Emitter is mixed into the class
This commit is contained in:
parent
c908d9317d
commit
4f9871cd30
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue