Browse Source

Added `ComponentView.onAttrUpdate` callback

pull/3281/head
Artur Arseniev 5 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() {
this.updateAttributes();
this.updateClasses();
this.onAttrUpdate();
},
onAttrUpdate() {},
render() {
this.renderAttributes();
if (this.modelOpt.temporary) return this;

Loading…
Cancel
Save