mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Remove the controller from __controllers
According to js specs, the `slice` method doesn't change the original array. Therefore, we have to reassign `__controllers` to `this.__controllers` after slicing.
This commit is contained in:
parent
072e945b32
commit
c22b451a78
@ -544,7 +544,7 @@ define([
|
|||||||
|
|
||||||
// TODO listening?
|
// TODO listening?
|
||||||
this.__ul.removeChild(controller.__li);
|
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;
|
var _this = this;
|
||||||
common.defer(function() {
|
common.defer(function() {
|
||||||
_this.onResize();
|
_this.onResize();
|
||||||
|
Loading…
Reference in New Issue
Block a user