Skip to content

Commit

Permalink
[BUGFIX release] Correct apply in deprecateFunc
Browse files Browse the repository at this point in the history
Re: #11677 (comment)

restored by @stefanpenner
(cherry picked from commit 5550de1)
  • Loading branch information
stefanpenner authored and rwjblue committed Jul 12, 2015
1 parent bbd59d0 commit 5ef0e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-debug/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Ember.deprecateFunc = function(...args) {
let [message, options, func] = args;
return function() {
Ember.deprecate(message, false, options);
return func.call(this, arguments);
return func.apply(this, arguments);
};
} else {
let [message, func] = args;
Expand Down

0 comments on commit 5ef0e9e

Please sign in to comment.