Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #431 from nicomihalich/remove-service-injection
Browse files Browse the repository at this point in the history
Revert service injection
  • Loading branch information
martndemus authored Aug 23, 2016
2 parents ddff863 + c9fdf49 commit c97cfe5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addon/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const {
computed,
computed: { alias, not },
get,
inject: { service },
isArray,
isNone,
isPresent,
Expand Down Expand Up @@ -44,7 +43,7 @@ const pushValidatableObject = function(model, property) {

const lookupValidator = function(validatorName) {
let owner = getOwner(this);
let service = get(this, 'validationService');
let service = owner.lookup('service:validations');
let validators = [];
let cache;

Expand Down Expand Up @@ -105,7 +104,6 @@ const ArrayValidatorProxy = ArrayProxy.extend(setValidityMixin, {
});

export default Mixin.create(setValidityMixin, {
validationService: service('validations'),

init() {
this._super(...arguments);
Expand Down

0 comments on commit c97cfe5

Please sign in to comment.