I have a computed observable:
passengerDocs.passengerDocsViewModel = function () {
var self = this;
self.isFunctionsDone = ko.observableArray([false, false, false, false, false, false, false]);
self.IsCompleted = ko.computed(function () {
var isFinished = true;
ko.utils.arrayForEach(self.isFunctionsDone(), function (x) {
if (x == false) isFinished = false;
});
return isFinished;
});
problem is that it always returns false even if all the elelments of isFunctionDone are true. Any ideas?