diff --git a/packages/ember-runtime/lib/system/subarray.js b/packages/ember-runtime/lib/system/subarray.js index 930f6c93186..8ae960c2839 100644 --- a/packages/ember-runtime/lib/system/subarray.js +++ b/packages/ember-runtime/lib/system/subarray.js @@ -1,3 +1,4 @@ +import Ember from 'ember-metal/core'; import EmberError from 'ember-metal/error'; var RETAIN = 'r'; @@ -20,6 +21,12 @@ export default SubArray; @private */ function SubArray(length) { + Ember.deprecate( + 'Ember.SubArray will be removed in 2.0.0.', + false, + { id: 'ember-metal.sub-array', until: '2.0.0' } + ); + if (arguments.length < 1) { length = 0; } if (length > 0) { diff --git a/packages/ember-runtime/tests/system/subarray_test.js b/packages/ember-runtime/tests/system/subarray_test.js index ebbf00c023c..98792a1b12c 100644 --- a/packages/ember-runtime/tests/system/subarray_test.js +++ b/packages/ember-runtime/tests/system/subarray_test.js @@ -4,6 +4,7 @@ var subarray; QUnit.module('SubArray', { setup() { + expectDeprecation('Ember.SubArray will be removed in 2.0.0.'); subarray = new SubArray(); } });