mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
wasDisposed
ignores objects that are on the prototype
This commit is contained in:
parent
72baf939de
commit
ee39eb3ce7
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* global mocha, chai*/
|
||||
/* global mocha*/
|
||||
|
||||
define(["Tone/core/Tone", "deps/chai"], function (Tone, chai) {
|
||||
|
||||
|
@ -33,7 +33,8 @@ define(["Tone/core/Tone", "deps/chai"], function (Tone, chai) {
|
|||
typeof member !== "boolean" &&
|
||||
typeof member !== "undefined" &&
|
||||
prop !== "preset" &&
|
||||
!(member instanceof AudioContext)){
|
||||
!(member instanceof AudioContext) &&
|
||||
!obj.constructor.prototype[prop]){
|
||||
if (member !== null){
|
||||
throw Error("property was not completely disposed: "+prop);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue