mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(collectionRepeat): remove elements at correct time when leaving page
This commit is contained in:
@@ -48,14 +48,7 @@ function($cacheFactory, $parse, $rootScope) {
|
||||
destroy: function() {
|
||||
this.dimensions.length = 0;
|
||||
this.data = null;
|
||||
forEach(this.backupItemsArray, function(item) {
|
||||
this.destroyItem(item);
|
||||
}, this);
|
||||
this.backupItemsArray.length = 0;
|
||||
|
||||
forEach(this.attachedItems, function(item, key) {
|
||||
this.destroyItem(item);
|
||||
}, this);
|
||||
this.attachedItems = {};
|
||||
},
|
||||
calculateDataDimensions: function() {
|
||||
|
||||
Reference in New Issue
Block a user