mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-30 09:03:33 +03:00
Changed Knockout a bit
This commit is contained in:
parent
a352ebff25
commit
f105ed3f9d
15 changed files with 205 additions and 194 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
ko.bindingHandlers['checked'] = {
|
||||
'after': ['value', 'attr'],
|
||||
'init': function (element, valueAccessor, allBindings) {
|
||||
'init'(element, valueAccessor, allBindings) {
|
||||
var isCheckbox = element.type == "checkbox",
|
||||
isRadio = element.type == "radio";
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ ko.bindingHandlers['checked'] = {
|
|||
//ko.expressionRewriting.twoWayBindings['checked'] = true;
|
||||
|
||||
ko.bindingHandlers['checkedValue'] = {
|
||||
'update': function (element, valueAccessor) {
|
||||
'update'(element, valueAccessor) {
|
||||
element.value = ko.utils.unwrapObservable(valueAccessor());
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue