@ -82,10 +82,9 @@ export default Input.extend({
*/
getColorEl() {
if (!this.colorEl) {
const { em } = this;
const { em, model } = this;
const self = this;
const ppfx = this.ppfx;
var model = this.model;
var colorEl = $(`<div class="${this.ppfx}field-color-picker"></div>`);
var cpStyle = colorEl.get(0).style;
@ -47,6 +47,10 @@ export default Backbone.Model.extend({
this.set({ value }, { fromTarget: 1 });
},
getValue() {
return this.getTargetValue();
getTargetValue() {
const name = this.get('name');
const target = this.target;