Fixed JS error with Colorpicker and empty options

This commit is contained in:
Djamil Legato
2016-03-14 17:13:53 -07:00
parent a30bafb38e
commit a5e64e7724
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ export default class ColorpickerField {
constructor(selector) {
this.selector = selector;
this.field = $(this.selector);
this.options = this.field.data('grav-colorpicker');
this.options = Object.assign({}, this.field.data('grav-colorpicker'));
this.built = false;
this.attach();

File diff suppressed because one or more lines are too long