From 06c546653e79c46e64d23e4bba4856dfe3e364fd Mon Sep 17 00:00:00 2001 From: Ryan Deba Date: Fri, 15 Dec 2017 14:19:10 -0600 Subject: [PATCH] rename "this.target" to "this.em" --- src/domain_abstract/ui/Input.js | 2 +- src/domain_abstract/ui/InputColor.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain_abstract/ui/Input.js b/src/domain_abstract/ui/Input.js index e3493bd26..4bb9ad3fc 100644 --- a/src/domain_abstract/ui/Input.js +++ b/src/domain_abstract/ui/Input.js @@ -25,7 +25,7 @@ module.exports = Backbone.View.extend({ const ppfx = opts.ppfx || ''; this.opts = opts; this.ppfx = ppfx; - this.target = opts.target || {}; + this.em = opts.target || {}; this.listenTo(this.model, 'change:value', this.handleModelChange); }, diff --git a/src/domain_abstract/ui/InputColor.js b/src/domain_abstract/ui/InputColor.js index c636d6dd2..b9284a893 100644 --- a/src/domain_abstract/ui/InputColor.js +++ b/src/domain_abstract/ui/InputColor.js @@ -58,8 +58,8 @@ module.exports = Input.extend({ var colorEl = $(`
`); var cpStyle = colorEl.get(0).style; - var elToAppend = this.target && this.target.config ? this.target.config.el : ''; - var colorPickerConfig = this.target && this.target.getConfig && this.target.getConfig("colorPicker") || {}; + var elToAppend = this.em && this.em.config ? this.em.config.el : ''; + var colorPickerConfig = this.em && this.em.getConfig && this.em.getConfig("colorPicker") || {}; const getColor = color => { let cl = color.getAlpha() == 1 ? color.toHexString() : color.toRgbString(); return cl.replace(/ /g, '');