From 5ef0e9e41d7e11228c7bf63c028993a2e7884208 Mon Sep 17 00:00:00 2001 From: Stefan Penner Date: Wed, 8 Jul 2015 11:41:04 -0700 Subject: [PATCH] [BUGFIX release] Correct apply in deprecateFunc Re: #11677 (comment) restored by @stefanpenner (cherry picked from commit 5550de14dfbd158e576fec9401e34ffc529a21b0) --- packages/ember-debug/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ember-debug/lib/main.js b/packages/ember-debug/lib/main.js index d6c6491829a..cd1d3642a45 100644 --- a/packages/ember-debug/lib/main.js +++ b/packages/ember-debug/lib/main.js @@ -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;