@ -123,5 +123,12 @@ module.exports = PropertyView.extend({
}
return value;
},
clearCached() {
PropertyView.prototype.clearCached.apply(this, arguments);
this.$input = null;
this.props = null;
this.$props = null;
});
@ -51,6 +51,12 @@ module.exports = PropertyView.extend({
this.setValue(this.componentValue, 0);
this.$preview = null;
this.$previewBox = null;
setValue(value, f) {
PropertyView.prototype.setValue.apply(this, arguments);
this.setPreviewView(value && value != this.model.getDefaultValue());
@ -56,5 +56,10 @@ module.exports = Property.extend({
if (!this.model.get('showInput')) {
this.inputInst.el.style.display = 'none';
Property.prototype.clearCached.apply(this, arguments);
this.slider = null;
@ -473,7 +473,14 @@ module.exports = Backbone.View.extend({
this.setValue('');
this.clearEl = null;
this.input = null;
render() {
this.clearCached();
const pfx = this.pfx;
const model = this.model;
const el = this.el;