From 69ab7484d95c340dba104884d1072c79c2467f34 Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Fri, 11 Aug 2017 20:41:05 +0800 Subject: [PATCH] Remove profiler --- tests/test.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/test.js b/tests/test.js index 9900130..18b8dfb 100644 --- a/tests/test.js +++ b/tests/test.js @@ -24,9 +24,6 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1; : new html2canvas.CanvasRenderer(); (function($) { $.fn.html2canvas = function(options) { - if (options && options.profile && window.console && window.console.profile && !CI) { - window.console.profile(); - } var date = new Date(), $message = null, timeoutTimer = false, @@ -52,9 +49,6 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1; var $canvas = $(canvas), finishTime = new Date(); - if (options && options.profile && window.console && window.console.profileEnd) { - window.console.profileEnd(); - } $canvas .addClass('html2canvas') .css({ @@ -153,7 +147,6 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1; $.extend( { logging: true, - profile: true, proxy: 'http://localhost:8082', useCORS: false, removeContainer: false,