var newWorkTimeList = []; var isEmpty = false; var flag = true; var WT = { 'workTimeList': newWorkTimeList, readonly: ko.observable(true) };