diff options
| author | bozo.kopic <bozo.kopic@gmail.com> | 2019-04-08 22:47:10 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo.kopic@gmail.com> | 2019-04-08 22:47:10 +0200 |
| commit | f53913389fa435d26307075bf5dab3675b1f17c4 (patch) | |
| tree | f70d5fd95070b6f1f5f427d2d43da7f77d000efa /node_modules.patch | |
| parent | 07dae145e814856c8f38f407d91a033b233c081d (diff) | |
dependencies update & minor fixes
Diffstat (limited to 'node_modules.patch')
| -rw-r--r-- | node_modules.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/node_modules.patch b/node_modules.patch new file mode 100644 index 0000000..5391749 --- /dev/null +++ b/node_modules.patch @@ -0,0 +1,41 @@ +--- node_modules/snabbdom/es/modules/props.js ++++ node_modules/snabbdom/es/modules/props.js +@@ -8,7 +8,11 @@ + props = props || {}; + for (key in oldProps) { + if (!props[key]) { +- delete elm[key]; ++ if (key === 'style') { ++ elm[key] = ''; ++ } else { ++ delete elm[key]; ++ } + } + } + for (key in props) { + + +--- node_modules/snabbdom/es/modules/attributes.js ++++ node_modules/snabbdom/es/modules/attributes.js +@@ -22,20 +22,7 @@ + elm.removeAttribute(key); + } + else { +- if (key.charCodeAt(0) !== xChar) { +- elm.setAttribute(key, cur); +- } +- else if (key.charCodeAt(3) === colonChar) { +- // Assume xml namespace +- elm.setAttributeNS(xmlNS, key, cur); +- } +- else if (key.charCodeAt(5) === colonChar) { +- // Assume xlink namespace +- elm.setAttributeNS(xlinkNS, key, cur); +- } +- else { +- elm.setAttribute(key, cur); +- } ++ elm.setAttribute(key, cur); + } + } + } |
