2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-07-24 10:24:30 -06:00
Bug found by @ct.js
init without customBG causes error
This commit is contained in:
peterd 2015-01-30 11:53:49 +01:00
parent cbede2ac03
commit 1ac6303474
4 changed files with 8 additions and 5 deletions

2
color.all.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -155,7 +155,10 @@
},
that = this,
colorPickers = this.colorPickers || [], // this is a way to prevent data binding on HTMLElements
testColors = new window.Colors({customBG: config.customBG, allMixDetails: true});
testColors = new window.Colors({
customBG: (config && config.customBG) || '#FFFFFF',
allMixDetails: true
});
this.colorPickers = colorPickers;

File diff suppressed because one or more lines are too long