From a6ae915f1f3e1cbd208153055ae28717859f23a3 Mon Sep 17 00:00:00 2001 From: Andrew Aylett Date: Wed, 19 Feb 2014 10:27:06 +0000 Subject: [PATCH 1/2] Always explicitly notify on computed observables. Knockout 3.0.0 changes the default behaviour for computed observables to avoid notifying when the computed value hasn't changed. We rely on getting these notifications, so we need to ensure that we set the old behaviour. --- knockout.mapping.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/knockout.mapping.js b/knockout.mapping.js index 2ac4a3d..1482283 100644 --- a/knockout.mapping.js +++ b/knockout.mapping.js @@ -285,14 +285,14 @@ return DO(val); }, deferEvaluation: true - }); + }).extend({notify: 'always'}); if (DEBUG) wrapped._wrapper = true; wrapped.__DO = DO; return wrapped; }; options.deferEvaluation = true; // will either set for just options, or both read/options. - var realDependentObservable = new realKoDependentObservable(read, owner, options); + var realDependentObservable = new realKoDependentObservable(read, owner, options).extend({notify: 'always'}); if (!realDeferEvaluation) { realDependentObservable = wrap(realDependentObservable); From 7cc7e3d5e75d99b6f9951225e46696c4ed695f68 Mon Sep 17 00:00:00 2001 From: Andrew Aylett Date: Wed, 19 Feb 2014 10:30:02 +0000 Subject: [PATCH 2/2] Bump the Knockout version up to 3.0.0. --- spec/runner.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/runner.html b/spec/runner.html index d4b0b9b..de6299b 100644 --- a/spec/runner.html +++ b/spec/runner.html @@ -6,7 +6,7 @@ - +