##// END OF EJS Templates
Return the viewlist from the update promise so that you can use it immediately....
Jason Grout -
Show More
@@ -648,6 +648,7 define(["widgets/js/manager",
648 that._models = new_models.slice();
648 that._models = new_models.slice();
649 return Promise.all(added_views, function(added) {
649 return Promise.all(added_views, function(added) {
650 that.views = that.views.slice(0,first_removed).concat(added);
650 that.views = that.views.slice(0,first_removed).concat(added);
651 return that.views;
651 });
652 });
652 });
653 });
653 return this.state_change;
654 return this.state_change;
General Comments 0
You need to be logged in to leave comments. Login now