ImgCache.$promise.then(function() { + - ImgCache.isCached(src, function(path, success) { Code is not reaching this section