Browse Source

Added `ComponentView.onAttrUpdate` callback

pull/3281/head
Artur Arseniev 6 years ago
parent
commit
f2e399a246
  1. 3
      src/dom_components/view/ComponentView.js

3
src/dom_components/view/ComponentView.js

@ -511,8 +511,11 @@ export default Backbone.View.extend({
renderAttributes() { renderAttributes() {
this.updateAttributes(); this.updateAttributes();
this.updateClasses(); this.updateClasses();
this.onAttrUpdate();
}, },
onAttrUpdate() {},
render() { render() {
this.renderAttributes(); this.renderAttributes();
if (this.modelOpt.temporary) return this; if (this.modelOpt.temporary) return this;

Loading…
Cancel
Save