diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index 0077f7d..e2b058a 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 = this.__controllers.slice(this.__controllers.indexOf(controller), 1); var _this = this; common.defer(function() { _this.onResize();