Skip to content

Commit

Permalink
[BUGFIX release] Deprecate Ember.SubArray
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Aug 6, 2015
1 parent 281b8ca commit 1f50e49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/ember-runtime/lib/system/subarray.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Ember from 'ember-metal/core';
import EmberError from 'ember-metal/error';

var RETAIN = 'r';
Expand All @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions packages/ember-runtime/tests/system/subarray_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var subarray;

QUnit.module('SubArray', {
setup() {
expectDeprecation('Ember.SubArray will be removed in 2.0.0.');
subarray = new SubArray();
}
});
Expand Down

0 comments on commit 1f50e49

Please sign in to comment.