diff --git a/app/components/file-field.js b/app/components/file-field.js index d553a2d..034273d 100644 --- a/app/components/file-field.js +++ b/app/components/file-field.js @@ -4,23 +4,23 @@ export default Ember.TextField.extend({ type: 'file', classNames: ['invisible'], - click(event) { + click: function (event) { event.stopPropagation(); }, - change(event) { + change: function (event) { const input = event.target; const files = input.files; const file = files[0]; this.sendAction('action', { file: file }); - this.reset() + this.reset(); }, // Hackish way to reset file input when sender cancels file transfer, // so if sender wants later to send the same file again, // the 'change' event is triggered correctly. - reset() { + reset: function () { const field = this.$(); field.wrap('