muu

DEPRECATED lightweight JS framework
git clone https://git.ce9e.org/muu.git

commit
1dac42cc3db85cf3438c5db85f014e33307ea59a
parent
247d93b425e128280b2139c927220debc5f3389b
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-08-22 17:08
avoid overwriting element.type

throws in IE8 and is not a good idea anyway

Diffstat

M src/muu-update-dom.js 6 ++++--

1 files changed, 4 insertions, 2 deletions


diff --git a/src/muu-update-dom.js b/src/muu-update-dom.js

@@ -38,7 +38,9 @@ define(['muu-js-helpers'], function(_) {
   38    38             }
   39    39         });
   40    40         _.forEach(sourceAttrNames, function(name) {
   41    -1             target.setAttribute(name, source.getAttribute(name));
   -1    41             if (target.getAttribute(name) !== source.getAttribute(name)) {
   -1    42                 target.setAttribute(name, source.getAttribute(name));
   -1    43             }
   42    44         });
   43    45     };
   44    46 
@@ -46,7 +48,7 @@ define(['muu-js-helpers'], function(_) {
   46    48         var nt = target.childNodes.length;
   47    49         var ns = source.childNodes.length;
   48    50 
   49    -1         if (target.nodeType === source.nodeType && target.nodeName === source.nodeName) {
   -1    51         if (target.nodeType === source.nodeType && target.nodeName === source.nodeName && target.type === source.type) {
   50    52             if (target.nodeType === 1) {
   51    53                 var muuClasses = _.filter(target.classList, function(cls) {
   52    54                     return cls.lastIndexOf('muu-', 0) === 0;