Reset icons to load counter and fire all icons loaded when any fails

This commit is contained in:
Raul Ochoa 2015-03-04 19:35:42 +01:00
parent 286b23ebaf
commit 7958c81c24

View File

@ -380,6 +380,8 @@ var Filters = require('./torque_filters');
if (err) {
self._forcePoints = true;
self.clearSpriteCache();
self._iconsToLoad = 0;
self.fire("allIconsLoaded");
if(filtered) {
console.info("Only CORS-enabled, or same domain image-files can be used in combination with image-filters");
}