From 57fe896bbd8004eae1c9a03efd31186985215ce7 Mon Sep 17 00:00:00 2001 From: iggor_kurr Date: Wed, 12 Aug 2015 13:07:10 +0300 Subject: [PATCH] add fix for divide into pages to handle when array prototype extensions disabled --- addon/divide-into-pages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/divide-into-pages.js b/addon/divide-into-pages.js index 73870cd..6f25152 100644 --- a/addon/divide-into-pages.js +++ b/addon/divide-into-pages.js @@ -3,7 +3,7 @@ import Ember from 'ember'; export default Ember.Object.extend({ objsForPage: function(page) { var range = this.range(page); - return this.get('all').slice(range.start,range.end+1); + return Ember.A(this.get('all').slice(range.start,range.end+1)); }, totalPages: function() { @@ -19,4 +19,4 @@ export default Ember.Object.extend({ return {start: s, end: e}; } -}); \ No newline at end of file +});