We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9706311 commit da103c2Copy full SHA for da103c2
1 file changed
knockout-paging.js
@@ -21,9 +21,16 @@
21
// --------
22
"use strict";
23
24
+ // polyfill for IE < 9
25
+ if (!Array.isArray) {
26
+ Array.isArray = function(arg) {
27
+ return Object.prototype.toString.call(arg) === '[object Array]';
28
+ };
29
+ }
30
+
31
// Utilities
32
function isObservableArray(value) {
- return ko.isObservable(value) && 'push' in ko.unwrap(value);
33
+ return ko.isObservable(value) && Array.isArray(ko.unwrap(value));
34
}
35
36
function createRange(min, max) {
0 commit comments