mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
import Ember from 'ember';
|
|
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;
|