Added to test_observableArrays() to include change and beforeChange event subscriptions.

This commit is contained in:
EWOUT-QMINO\Ewout
2014-10-08 16:35:16 +02:00
parent 3056dd7fb8
commit 3b2aa1c713
+8
View File
@@ -117,6 +117,14 @@ function test_observableArrays() {
}
}, null, "arrayChange");
myObservableArray.subscribe(function(newValue){
console.log(newValue);
}, null, "change");
myObservableArray.subscribe(function(oldValue){
console.log(oldValue);
}, null, "beforeChange");
myObservableArray.push('Some value');
var anotherObservableArray = ko.observableArray([
{ name: "Bungle", type: "Bear" },