From d0356fd6ae24b7e817b25206c32228e3849033e2 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 29 Sep 2017 02:08:19 +0200 Subject: [PATCH] Make tinycolor available globally immediately --- src/utils/ColorPicker.js | 4 ++-- test/specs/grapesjs/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/ColorPicker.js b/src/utils/ColorPicker.js index 307114d61..2018513c7 100644 --- a/src/utils/ColorPicker.js +++ b/src/utils/ColorPicker.js @@ -1211,7 +1211,7 @@ // https://github.com/bgrins/TinyColor // Brian Grinstead, MIT License - (function() { + //(function() { var trimLeft = /^[\s,#]+/, trimRight = /\s+$/, @@ -2310,7 +2310,7 @@ } window.tinycolor = tinycolor; - })(); + //})(); $(function () { if ($.fn.spectrum.load) { diff --git a/test/specs/grapesjs/index.js b/test/specs/grapesjs/index.js index d3e5253b1..ab64735a2 100644 --- a/test/specs/grapesjs/index.js +++ b/test/specs/grapesjs/index.js @@ -2,7 +2,7 @@ const PluginManager = require('plugin_manager'); describe('GrapesJS', () => { - describe.skip('Main', () => { + describe.only('Main', () => { var obj; var fixtures;