mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Removed unreachable block related to noupdate PR
This commit is contained in:
parent
77513759d2
commit
94982991c4
@ -454,18 +454,6 @@ Widget.prototype = widgetProto = {
|
||||
var id = fromEl.id;
|
||||
var existingWidget;
|
||||
|
||||
var preservedAttrs = !out.isVDOM && toEl.getAttribute('data-_noupdate');
|
||||
if (preservedAttrs) {
|
||||
preservedAttrs.forEach(function(preservedAttrName) {
|
||||
var preservedAttrValue = fromEl.getAttribute(preservedAttrName);
|
||||
if (preservedAttrValue == null) {
|
||||
toEl.removeAttribute(preservedAttrName);
|
||||
} else {
|
||||
toEl.setAttribute(preservedAttrName, preservedAttrValue);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (widgetsContext && id) {
|
||||
var preserved = widgetsContext.$__preserved[id];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user