From 2095e427ac120344e28b1ecab09b11b646284ea5 Mon Sep 17 00:00:00 2001 From: jericopulvera Date: Fri, 2 Feb 2018 08:48:51 +0800 Subject: [PATCH] Fix IE Compatibility Issue --- src/laravel-vue-pagination.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/laravel-vue-pagination.js b/src/laravel-vue-pagination.js index 72f96a1..37169cc 100644 --- a/src/laravel-vue-pagination.js +++ b/src/laravel-vue-pagination.js @@ -64,7 +64,7 @@ module.exports = { } } - for (var i of range) { + range.forEach(function (i) { if (l) { if (i - l === 2) { pages.push(l + 1); @@ -74,7 +74,7 @@ module.exports = { } pages.push(i); l = i; - } + }); return pages; }