From 16cabd89bc1b1f4aadf9cfda25a3e4a31603c00e Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 17 Mar 2014 23:28:51 +0000 Subject: [PATCH] remove some events/timers left over from the stock intel site code --- main.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 78eb42fd..c97e5368 100644 --- a/main.js +++ b/main.js @@ -23,7 +23,6 @@ window.iitcBuildDate = '@@BUILDDATE@@'; window.onload = function() {}; document.body.onload = function() {}; - // rescue user data from original page var scr = document.getElementsByTagName('script'); for(var x in scr) { @@ -115,6 +114,16 @@ function wrapper(info) { // (not the full GM_info - it contains the ENTIRE script source!) window.script_info = info; +// disabling of some cruft left behind by the stock site +try { + goog.events.removeAll(); + goog.Timer.clear(); +} catch(e) { + console.warn('Exception from trying to clear stock site stuff'); + console.warn(e); + debugger; // debugger break +} + // LEAFLET PREFER CANVAS /////////////////////////////////////////////// // Set to true if Leaflet should draw things using Canvas instead of SVG