mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
a9608d77ae
Previously, the exports were somewhat random with some files declaring local variables then immediately exporting them, and others simply doing the work needed in the export itself.
16 lines
388 B
JavaScript
16 lines
388 B
JavaScript
var Form = 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);
|
|
}
|
|
});
|
|
|
|
export default Form;
|