From 1bd68977f67df728fb96d120490f4cd71be0090c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20I=2E=20Silva?= Date: Fri, 23 Dec 2016 02:01:37 -0600 Subject: [PATCH] deprecate Ember.K --- packages/ember/lib/index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/ember/lib/index.js b/packages/ember/lib/index.js index fe9b407ee9d..87827b68b90 100644 --- a/packages/ember/lib/index.js +++ b/packages/ember/lib/index.js @@ -212,7 +212,19 @@ Object.defineProperty(Ember, 'onerror', { @return {Object} @public */ -Ember.K = function K() { return this; }; +Ember.K = function K() { + deprecate( + 'Ember.K is deprecated in favor of defining a function inline.', + false, + { + id: 'ember-metal.ember-k', + until: '3.0.0', + url: 'http://emberjs.com/deprecations/v2.x#toc_code-ember-k-code' + } + ); + + return this; +}; Object.defineProperty(Ember, 'testing', { get: metal.isTesting,