From c4a2946e04b060bca8a4a3210eacf2ba2a451224 Mon Sep 17 00:00:00 2001 From: Shachar <34343793+ShaMan123@users.noreply.github.com> Date: Fri, 26 Aug 2022 11:41:16 +0300 Subject: [PATCH] dep(): fabric.console (#8184) #8183 removes the last remaining usage --- index.js | 1 - src/log.ts | 15 --------------- test/unit/object.js | 2 +- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 src/log.ts diff --git a/index.js b/index.js index 5ca1d65e845..610006962ac 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,6 @@ import './src/util/dom_event'; // optional interaction import './src/util/dom_style'; import './src/util/dom_misc'; import './src/util/dom_request'; -import './src/log'; import './src/util/animate'; // optional animation import './src/util/animate_color'; // optional animation import './src/util/anim_ease'; // optional easing diff --git a/src/log.ts b/src/log.ts deleted file mode 100644 index 85a29e98cf9..00000000000 --- a/src/log.ts +++ /dev/null @@ -1,15 +0,0 @@ -//@ts-nocheck -(function(global) { - var fabric = global.fabric || (global.fabric = { }); - /** - * Wrapper around `console.log` (when available) - * @param {*} [values] Values to log - */ - fabric.log = console.log; - - /** - * Wrapper around `console.warn` (when available) - * @param {*} [values] Values to log as a warning - */ - fabric.warn = console.warn; -})(typeof exports !== 'undefined' ? exports : window); diff --git a/test/unit/object.js b/test/unit/object.js index caa6d5c06d4..1f7fb30f871 100644 --- a/test/unit/object.js +++ b/test/unit/object.js @@ -463,7 +463,7 @@ assert.equal(dataURL.substring(0, 22), 'data:image/jpeg;base64'); } catch (err) { - fabric.log('jpeg toDataURL not supported'); + console.log('jpeg toDataURL not supported'); } });