Skip to content

Commit

Permalink
Remove custom handler based on PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sduquej committed Aug 19, 2017
1 parent ec4ded7 commit 6e9d228
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/ember-runtime/lib/mixins/target_action_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
*/

import { context } from 'ember-environment';
import { registerHandler } from 'ember-debug/deprecate';
import {
get,
Mixin,
computed,
deprecate,
descriptor
} from 'ember-metal';
import { assert } from 'ember-debug';
import { assert, deprecate } from 'ember-debug';
/**
`Ember.TargetActionSupport` is a mixin that can be included in a class
to add a `triggerAction` method with semantics similar to the Handlebars
Expand Down Expand Up @@ -150,12 +148,6 @@ function getTarget(instance) {
}
}

registerHandler(function(message, options, next) {
if (!options || options.id !== 'ember-runtime.using-targetObject') {
next(...arguments);
}
});
target = get(instance, 'targetObject');
// if a `targetObject` CP was provided, use it
if (target) { return target; }

Expand All @@ -167,6 +159,6 @@ function getTarget(instance) {

function _deprecateTargetObject() {
let message = 'Usage of `targetObject` is deprecated. Please use `target` instead.';
let options = { id: 'ember-runtime.using-targetObject', until: '2.12.0' };
let options = { id: 'ember-runtime.using-targetObject', until: '2.15.0' };
deprecate(message, false, options);
}

0 comments on commit 6e9d228

Please sign in to comment.