REFACTOR: Remove requirejs calls

This commit is contained in:
Robin Ward
2017-07-05 16:47:01 -04:00
parent 754c1e5438
commit c53eeaaa68
12 changed files with 27 additions and 37 deletions

View File

@ -1,3 +1,5 @@
import Permalink from 'admin/models/permalink';
export default Ember.Component.extend({
classNames: ['permalink-form'],
formSubmitted: false,
@ -18,8 +20,6 @@ export default Ember.Component.extend({
actions: {
submit: function() {
const Permalink = requirejs('admin/models/permalink').default;
if (!this.get('formSubmitted')) {
const self = this;
self.set('formSubmitted', true);