Fix remove method to use splice instead of slice

This commit is contained in:
Ulysses Popple 2014-10-12 15:32:48 -04:00
parent 072e945b32
commit 86f43c0be5

View File

@ -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.splice(this.__controllers.indexOf(controller), 1);
var _this = this; var _this = this;
common.defer(function() { common.defer(function() {
_this.onResize(); _this.onResize();