Fixed bug - makeEditable now on .editable

Also refactored how editable types inherit - now simpler
This commit is contained in:
HowardRichards
2015-02-19 10:18:11 +00:00
parent 74ba1baa4b
commit 2a67c1e923
2 changed files with 27 additions and 35 deletions
+4
View File
@@ -9,6 +9,8 @@
/*
Version 1.0 - initial commit
Version 1.1 - added test for makeEditable
Note: Typescript version 1.4 or higher is required for union types
and type declarations
*/
@@ -65,6 +67,8 @@ function EditableTests() {
var edit4 = ko.editable<string|number>(1); // with union types
var edit5 = ko.editable<string|number>("test");
ko.editable.makeEditable(this);
// test getting the value
var value = edit1();