morphdom
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -43,4 +43,7 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.morphdom = f()}})(function(){var define,module,exports;module={exports:(exports={})}; | ||
fromEl.checked = toEl.checked; | ||
fromEl.value = toEl.value; | ||
if (fromEl.value != toEl.value) { | ||
fromEl.value = toEl.value; | ||
} | ||
if (!toEl.hasAttribute('checked')) { | ||
@@ -57,5 +60,6 @@ fromEl.removeAttribute('checked'); | ||
var newValue = toEl.value; | ||
if (fromEl.value != newValue) { | ||
fromEl.value = newValue; | ||
} | ||
fromEl.value = newValue; | ||
if (fromEl.firstChild) { | ||
@@ -62,0 +66,0 @@ fromEl.firstChild.nodeValue = newValue; |
@@ -42,4 +42,7 @@ // Create a range object for efficently rendering strings to elements. | ||
fromEl.checked = toEl.checked; | ||
fromEl.value = toEl.value; | ||
if (fromEl.value != toEl.value) { | ||
fromEl.value = toEl.value; | ||
} | ||
if (!toEl.hasAttribute('checked')) { | ||
@@ -56,5 +59,6 @@ fromEl.removeAttribute('checked'); | ||
var newValue = toEl.value; | ||
if (fromEl.value != newValue) { | ||
fromEl.value = newValue; | ||
} | ||
fromEl.value = newValue; | ||
if (fromEl.firstChild) { | ||
@@ -61,0 +65,0 @@ fromEl.firstChild.nodeValue = newValue; |
@@ -38,3 +38,3 @@ { | ||
"dependencies": {}, | ||
"version": "1.0.1" | ||
"version": "1.0.2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15220423
681
672