Skip to content

Commit

Permalink
fix: Remove NAME_KEY usage
Browse files Browse the repository at this point in the history
Resolves #626.
  • Loading branch information
offirgolan committed Mar 4, 2019
1 parent 7ac97c0 commit 283fc05
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions addon/validations/factory.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Ember from 'ember';
import Mixin from '@ember/object/mixin';
import { Promise } from 'rsvp';
import EmberObject, { getWithDefault, computed, set, get } from '@ember/object';
Expand Down Expand Up @@ -96,7 +95,7 @@ export default function buildValidations(validations = {}, globalOptions = {}) {

let Validations, validationMixinCount;

let ValidationsMixin = Mixin.create({
return Mixin.create({
init() {
this._super(...arguments);

Expand Down Expand Up @@ -141,11 +140,6 @@ export default function buildValidations(validations = {}, globalOptions = {}) {
get(this, 'validations').destroy();
}
});

// Label mixin under a named scope for Ember Inspector
ValidationsMixin[Ember.NAME_KEY] = 'Validations';

return ValidationsMixin;
}

/**
Expand Down

0 comments on commit 283fc05

Please sign in to comment.