Skip to content

Commit 9d1ec68

Browse files
authored
Unwrap value in isObservableArray
This will allow the extender to work on a computed observable as well.
1 parent 162882f commit 9d1ec68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

knockout-paging.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// Utilities
2525
function isObservableArray(value) {
26-
return ko.isObservable(value) && 'push' in value;
26+
return ko.isObservable(value) && 'push' in ko.unwrap(value);
2727
}
2828

2929
function createRange(min, max) {
@@ -234,4 +234,4 @@
234234
ko.pagedObservableArray = function (initialValue, options) {
235235
return ko.observableArray(initialValue).extend({ paged: options });
236236
};
237-
}));
237+
}));

0 commit comments

Comments
 (0)