refactor(collectionRepeatDataSource): remove accidental test variable

This commit is contained in:
Andrew
2014-07-07 11:47:13 -06:00
parent cdba48f196
commit c482d477af

View File

@@ -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;