From 656d082568009c067f3b4c23a7147d7ad93fbce1 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 4 Mar 2015 10:54:30 +0100 Subject: [PATCH] Trigger allIconsLoaded when there are no icons to load --- lib/torque/renderer/point.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index df8f109..0c7672a 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -351,9 +351,11 @@ var Filters = require('./torque_filters'); this.itemsToLoad++; new_img.src = img_names[i]; } + } else { + this.fire("allIconsLoaded"); } - }, + applyFilters: function(){ if(this._style){ if(this._style['image-filters']){