angular.module("ionic.ion.imageCacheFactory",[]).factory("$ImageCacheFactory",["$q","$timeout",function(n){return{Cache:function(r){for(var e=[],o=0;o<r.length;o++){var t=n.defer(),a=new Image;a.onload=function(n){return function(){n.resolve()}}(t),a.onerror=function(n,r){return function(){n.reject(r)}}(t,r[o]),e.push(t.promise),a.src=r[o]}return n.all(e)}}}]);