From fe20c9f770697ce224575b11d317861b8c46150d Mon Sep 17 00:00:00 2001 From: Ruben Almeida Date: Wed, 17 Aug 2016 23:47:07 +0200 Subject: [PATCH] document can differ from window.document See issue #3 --- colorPicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/colorPicker.js b/colorPicker.js index 63405ea..f3f66bb 100644 --- a/colorPicker.js +++ b/colorPicker.js @@ -1,7 +1,8 @@ ;(function(window, undefined){ "use strict" - var _data = window.ColorPicker, // will be deleted in buildView() and holds: + var document = window.document, + _data = window.ColorPicker, // will be deleted in buildView() and holds: // window.ColorPicker = { // comes from colorPicker.data.js and will be overwritten. // _html: ..., // holds the HTML markup of colorPicker // _cssFunc: ..., // CSS for all the sliders