diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index 0077f7d..b0f61d3 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -544,7 +544,7 @@ define([ // TODO listening? this.__ul.removeChild(controller.__li); - this.__controllers.slice(this.__controllers.indexOf(controller), 1); + this.__controllers.splice(this.__controllers.indexOf(controller), 1); var _this = this; common.defer(function() { _this.onResize();