Knockout: Fixed tests

This commit is contained in:
John Reilly
2014-10-16 11:37:53 +01:00
parent 1b04524e2e
commit 94f5688907
+2 -2
View File
@@ -72,7 +72,7 @@ function test_computed() {
this.acceptedNumericValue = ko.observable(123);
this.lastInputWasValid = ko.observable(true);
this.attemptedValue = ko.computed({
this.attemptedValue = ko.computed<number>({
read: this.acceptedNumericValue,
write: function (value) {
if (isNaN(value))
@@ -284,7 +284,7 @@ function test_more() {
};
ko.extenders.numeric = function (target, precision) {
var result = ko.computed({
var result = ko.computed<any>({
read: target,
write: function (newValue) {
var current = target(),