##// END OF EJS Templates
remove obsolete optimization
Jason Grout -
Show More
@@ -593,7 +593,7 b' define(["widgets/js/manager",'
593 // returns a promise that resolves after this removal is done
593 // returns a promise that resolves after this removal is done
594 var that = this;
594 var that = this;
595 this.state_change = this.state_change.then(function() {
595 this.state_change = this.state_change.then(function() {
596 for (var i = 0, len=that.views.length; i <len; i++) {
596 for (var i = 0; i < that.views.length; i++) {
597 that._remove_view.call(that._handler_context, that.views[i]);
597 that._remove_view.call(that._handler_context, that.views[i]);
598 }
598 }
599 that._models = [];
599 that._models = [];
General Comments 0
You need to be logged in to leave comments. Login now