【发布时间】:2015-05-27 21:17:28
【问题描述】:
嘿,我的 knockout-kendo 框架有问题。
每个事件都会触发两次。
谁能告诉我我的代码有什么问题?
我创建了一个小的fiddle。
var StoreViewModel = function () {
var self = this;
this.stores = ko.observableArray(stores);
this.selectedStore = ko.observable(stores[0].Id);
// this event fires twice, dont know why!
this.dataBoundEvent = function () {
alert('databound event ...');
//doSomething();
};
this.changeEvent = function () {
alert('change event ...');
//doSomething();
};
};
谢谢!
【问题讨论】:
标签: javascript knockout.js kendo-ui