|
|
@ -375,9 +375,15 @@ module.exports = Backbone.View.extend({ |
|
|
* @return {Boolean} |
|
|
* @return {Boolean} |
|
|
*/ |
|
|
*/ |
|
|
isTargetStylable(target) { |
|
|
isTargetStylable(target) { |
|
|
|
|
|
if (this.model.get('id') == 'flex-width') { |
|
|
|
|
|
//debugger;
|
|
|
|
|
|
} |
|
|
const trg = target || this.getTarget(); |
|
|
const trg = target || this.getTarget(); |
|
|
const property = this.model.get('property'); |
|
|
const model = this.model; |
|
|
|
|
|
const property = model.get('property'); |
|
|
|
|
|
const toRequire = model.get('toRequire'); |
|
|
const unstylable = trg.get('unstylable'); |
|
|
const unstylable = trg.get('unstylable'); |
|
|
|
|
|
const stylableReq = trg.get('stylable-require'); |
|
|
let stylable = trg.get('stylable'); |
|
|
let stylable = trg.get('stylable'); |
|
|
|
|
|
|
|
|
// Stylable could also be an array indicating with which property
|
|
|
// Stylable could also be an array indicating with which property
|
|
|
@ -391,6 +397,11 @@ module.exports = Backbone.View.extend({ |
|
|
stylable = unstylable.indexOf(property) < 0; |
|
|
stylable = unstylable.indexOf(property) < 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Check if the property is available only if requested
|
|
|
|
|
|
if (toRequire) { |
|
|
|
|
|
stylable = (stylableReq && stylableReq.indexOf(property) >= 0) || !target; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return stylable; |
|
|
return stylable; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|