mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
KnockoutJS drop IE leftovers
This commit is contained in:
parent
39ad99224e
commit
4276896002
2 changed files with 0 additions and 11 deletions
|
|
@ -18,14 +18,6 @@ ko.bindingHandlers['attr'] = {
|
||||||
attrValue = attrValue.toString();
|
attrValue = attrValue.toString();
|
||||||
namespace ? element.setAttributeNS(namespace, attrName, attrValue) : element.setAttribute(attrName, attrValue);
|
namespace ? element.setAttributeNS(namespace, attrName, attrValue) : element.setAttribute(attrName, attrValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Treat "name" specially - although you can think of it as an attribute, it also needs
|
|
||||||
// special handling on older versions of IE (https://github.com/SteveSanderson/knockout/pull/333)
|
|
||||||
// Deliberately being case-sensitive here because XHTML would regard "Name" as a different thing
|
|
||||||
// entirely, and there's no strong reason to allow for such casing in HTML.
|
|
||||||
if (attrName === "name") {
|
|
||||||
element.name = toRemove ? "" : attrValue;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ ko.bindingHandlers['textInput'] = {
|
||||||
// Bind to the change event so that we can catch programmatic updates of the value that fire this event.
|
// Bind to the change event so that we can catch programmatic updates of the value that fire this event.
|
||||||
onEvent('change', updateModel);
|
onEvent('change', updateModel);
|
||||||
|
|
||||||
// To deal with browsers that don't notify any kind of event for some changes (IE, Safari, etc.)
|
|
||||||
onEvent('blur', updateModel);
|
|
||||||
|
|
||||||
ko.computed(updateView, { disposeWhenNodeIsRemoved: element });
|
ko.computed(updateView, { disposeWhenNodeIsRemoved: element });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue