mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Merge branch 'master' into switch-0.9.5
This commit is contained in:
@@ -568,4 +568,17 @@ function test_misc() {
|
||||
ko.utils.domNodeDisposal.addDisposeCallback(element, function () {
|
||||
$(element).datepicker("destroy");
|
||||
});
|
||||
|
||||
this.observableFactory = function(): KnockoutObservable<number>{
|
||||
if (true) {
|
||||
return ko.computed({
|
||||
read:function(){
|
||||
return 3;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return ko.observable(3);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user