Fix a problem in widget intialization for newly added switch row: serverControl value was not set.

Change-Id: Ibbf6ea75682317fe9f660d06485d1f4a1a25ee4f
This commit is contained in:
Weidong Shao 2014-01-24 23:24:00 +00:00
parent 4571242354
commit 904422457a

View File

@ -259,7 +259,9 @@ steal(
var tr = tbody.find("tr:last");
tr.ods_ui_switch_entry({
"odsState": this.options.odsState,
"switchData": null
"switchData": null,
"first": false,
"serverControl": this
});
},