Show More
@@ -643,7 +643,8 b' define(["widgets/js/manager",' | |||||
643 | for (; i < new_models.length; i++) { |
|
643 | for (; i < new_models.length; i++) { | |
644 | added_views.push(create.call(context, new_models[i])); |
|
644 | added_views.push(create.call(context, new_models[i])); | |
645 | } |
|
645 | } | |
646 | that._models = new_models; |
|
646 | // make a copy of the input array | |
|
647 | that._models = new_models.slice(); | |||
647 | return Promise.all(added_views, function(added) { |
|
648 | return Promise.all(added_views, function(added) { | |
648 | that.views = that.views.slice(0,first_removed).concat(added); |
|
649 | that.views = that.views.slice(0,first_removed).concat(added); | |
649 | }); |
|
650 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now