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'); } });