From 2f6334f4ed85c44558f352a2b9b47c03ebb85f44 Mon Sep 17 00:00:00 2001 From: YenkyK Date: Mon, 25 Mar 2013 13:59:11 +0100 Subject: [PATCH] Fixed reset of portal count if map is moved --- plugins/portal-counts.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/portal-counts.user.js b/plugins/portal-counts.user.js index 5ee5aa58..3b105cae 100644 --- a/plugins/portal-counts.user.js +++ b/plugins/portal-counts.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @id iitc-plugin-portals-count@yenky // @name IITC plugin: Show total counts of portals -// @version 0.0.1.20130325.130149 +// @version 0.0.2.20130325.135610 // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -26,14 +26,14 @@ if(typeof window.plugin !== 'function') window.plugin = function() {}; // use own namespace for plugin window.plugin.portalcounts = function() {}; -window.plugin.portalcounts.enlP = 0; -window.plugin.portalcounts.resP = 0; -window.plugin.portalcounts.neuP = 0; //count portals for each level avalaible on the map window.plugin.portalcounts.getPortals = function(){ //console.log('** getPortals'); var retval=false; + window.plugin.portalcounts.enlP = 0; + window.plugin.portalcounts.resP = 0; + window.plugin.portalcounts.neuP = 0; window.plugin.portalcounts.PortalsEnl = new Array(); window.plugin.portalcounts.PortalsEnl[1] = 0;