From 9c5859be415cb5814e817a304c427f22ccd41ce6 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Fri, 16 Jan 2015 11:36:06 +0100 Subject: [PATCH] empties _icons every time preload is run, assumes _icons is empty --- lib/torque/renderer/point.js | 46 +++++++++++++++++------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index c5c78b4..8c36f13 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -294,32 +294,30 @@ var carto = global.carto || require('carto'); }, _preloadIcons: function(img_names){ var self = this; + this._icons = {}; if (img_names.length > 0 && !this._forcePoints){ - if (Object.keys(this._icons).length === 0){ - for (var i = 0; i