From 7cc33e6e562af7a3e3bab43f3c7ebaaeaa9b2671 Mon Sep 17 00:00:00 2001 From: Shaun Cutts Date: Thu, 20 Aug 2015 04:35:46 +0200 Subject: [PATCH] disabling prototypes --- addon/components/ember-collection.js | 2 +- tests/dummy/config/environment.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/addon/components/ember-collection.js b/addon/components/ember-collection.js index 7b01e67e..85733e48 100644 --- a/addon/components/ember-collection.js +++ b/addon/components/ember-collection.js @@ -213,7 +213,7 @@ export default Ember.Component.extend({ style = formatStyle(pos, width, height); cell = new Cell(itemKey, items[itemIndex], itemIndex, style); cellMap[itemKey] = cell; - this._cells.pushObject(cell); + this._cells.push(cell); } this._cellMap = cellMap; return this._cells; diff --git a/tests/dummy/config/environment.js b/tests/dummy/config/environment.js index 0ed3b706..8156e9c9 100644 --- a/tests/dummy/config/environment.js +++ b/tests/dummy/config/environment.js @@ -7,9 +7,7 @@ module.exports = function(environment) { baseURL: '/', locationType: 'auto', EmberENV: { - EXTEND_PROTOTYPES: { - Array: true - }, + EXTEND_PROTOTYPES: false, FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-controller': true