aboutsummaryrefslogtreecommitdiff
path: root/node_modules.patch
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules.patch')
-rw-r--r--node_modules.patch41
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);
+ }
+ }
+ }