From 36841e4a0aa4f159c69bcfc3f51dcdd6c2bd62d9 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Fri, 14 Nov 2014 14:37:09 -0500 Subject: [PATCH] Removed console.log and useless functions. --- themes/bootstrap3/js/zoomy/canvas-zoomy.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/themes/bootstrap3/js/zoomy/canvas-zoomy.js b/themes/bootstrap3/js/zoomy/canvas-zoomy.js index 7ad05f73b6e..64f4c28506c 100644 --- a/themes/bootstrap3/js/zoomy/canvas-zoomy.js +++ b/themes/bootstrap3/js/zoomy/canvas-zoomy.js @@ -114,11 +114,7 @@ var Zoomy = { load: function(src, callback) { if(typeof this.canvas === "undefined") return; var img = new Image(); - img.onloadstart = function () { console.log('Loading...'); }; - img.onprogress = function (e) { console.log(e.loaded / e.total * 100); }; img.onload = function() { Zoomy.finishLoad(img); if(typeof callback !== "undefined") callback(); } - img.onerror = function () { /* Load failed. Show a custom error message. */ } - img.onloadend = function () { /* Load either either succeeded or failed. Either way, hide the progress bar. */ }; img.src = src; }, finishLoad: function(img) { @@ -150,7 +146,6 @@ var Zoomy = { this.context.restore(); // Minimap - console.log(this.showMinimap); if(!this.showMinimap) return; if(this.minimap == null) { this.minimap = this.initMinimap(); -- GitLab