mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
14 lines
370 B
JavaScript
14 lines
370 B
JavaScript
|
export default Ember.View.extend({
|
||
|
tagName: 'form',
|
||
|
attributeBindings: ['enctype'],
|
||
|
reset: function () {
|
||
|
this.$().get(0).reset();
|
||
|
},
|
||
|
didInsertElement: function () {
|
||
|
this.get('controller').on('reset', this, this.reset);
|
||
|
},
|
||
|
willClearRender: function () {
|
||
|
this.get('controller').off('reset', this, this.reset);
|
||
|
}
|
||
|
});
|