mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added overload and test for default subscribe
This commit is contained in:
@@ -125,6 +125,10 @@ function test_observableArrays() {
|
||||
console.log(oldValue);
|
||||
}, null, "beforeChange");
|
||||
|
||||
myObservableArray.subscribe(function(newValue){
|
||||
console.log(newValue);
|
||||
});
|
||||
|
||||
myObservableArray.push('Some value');
|
||||
var anotherObservableArray = ko.observableArray([
|
||||
{ name: "Bungle", type: "Bear" },
|
||||
|
||||
Reference in New Issue
Block a user