diff --git a/js/angular/service/collectionRepeatDataSource.js b/js/angular/service/collectionRepeatDataSource.js index fa8c05c347..490df0cebe 100644 --- a/js/angular/service/collectionRepeatDataSource.js +++ b/js/angular/service/collectionRepeatDataSource.js @@ -76,13 +76,11 @@ function($cacheFactory, $parse, $rootScope) { return item; }, getItem: function(hash) { - window.AMOUNT = window.AMOUNT || 0; if ( (item = this.attachedItems[hash]) ) { //do nothing, the item is good } else if ( (item = this.backupItemsArray.pop()) ) { reconnectScope(item.scope); } else { - AMOUNT++; item = this.createItem(); } return item;