From 0e0a0fd07775e6a19af2c6473a00ba618606e259 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Mon, 2 May 2016 15:17:38 +0000 Subject: [PATCH] Replace console.log with beef.debug --- modules/browser/spyder_eye/html2canvas.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/browser/spyder_eye/html2canvas.js b/modules/browser/spyder_eye/html2canvas.js index c4ea07dcc..58bf28b5d 100644 --- a/modules/browser/spyder_eye/html2canvas.js +++ b/modules/browser/spyder_eye/html2canvas.js @@ -1482,10 +1482,8 @@ LinearGradientContainer.prototype = Object.create(GradientContainer.prototype); LinearGradientContainer.prototype.stepRegExp = /((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/; -function log() { - if (window.html2canvas.logging && window.console && window.console.log) { - Function.prototype.bind.call(window.console.log, (window.console)).apply(window.console, [(Date.now() - window.html2canvas.start) + "ms", "html2canvas:"].concat([].slice.call(arguments, 0))); - } +function log(msg) { + beef.debug(msg); } function NodeContainer(node, parent) { @@ -3372,4 +3370,4 @@ function hasEntries(array) { return array.length > 0; } -}).call({}, typeof(window) !== "undefined" ? window : undefined, typeof(document) !== "undefined" ? document : undefined); \ No newline at end of file +}).call({}, typeof(window) !== "undefined" ? window : undefined, typeof(document) !== "undefined" ? document : undefined);