#2234: Declare local variable

IE11 needs local variable to be declared
This commit is contained in:
Mathias Muller
2014-10-06 09:59:35 +02:00
parent 29d6dc8163
commit 9dcdf52300

View File

@@ -69,6 +69,7 @@ function($cacheFactory, $parse, $rootScope) {
return item;
},
getItem: function(index) {
var item;
if ( (item = this.attachedItems[index]) ) {
//do nothing, the item is good
} else if ( (item = this.backupItemsArray.pop()) ) {