Added overload and test for default subscribe

This commit is contained in:
EWOUT-QMINO\Ewout
2014-10-08 16:39:13 +02:00
parent 3b2aa1c713
commit bf9a691038
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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" },