From 86f43c0be5db08c9a6d7339aa8287620306fb0b5 Mon Sep 17 00:00:00 2001 From: Ulysses Popple Date: Sun, 12 Oct 2014 15:32:48 -0400 Subject: [PATCH] Fix remove method to use splice instead of slice --- src/dat/gui/GUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();