Comparing version 2.4.0 to 2.5.0
@@ -1024,4 +1024,4 @@ (function(root, factory) { | ||
.setValue(t._const.action, t._const.modifyValue) | ||
.setValue(t._const.oldValue, t1.value) | ||
.setValue(t._const.newValue, t2.value) | ||
.setValue(t._const.oldValue, t1.value || "") | ||
.setValue(t._const.newValue, t2.value || "") | ||
.setValue(t._const.route, route) | ||
@@ -1114,5 +1114,2 @@ ); | ||
node.attributes[diff[this._const.name]] = diff[this._const.newValue]; | ||
if (node.nodeName === 'INPUT' && diff[this._const.name] === 'value') { | ||
node.value = diff[this._const.value]; | ||
} | ||
break; | ||
@@ -1399,2 +1396,5 @@ case this._const.removeAttribute: | ||
node.setAttribute(diff[this._const.name], diff[this._const.newValue]); | ||
if (diff[this._const.name] === 'value' && node.nodeName === 'INPUT' && node.value !== diff[this._const.oldValue]) { | ||
node.value = diff[this._const.oldValue]; | ||
} | ||
break; | ||
@@ -1401,0 +1401,0 @@ case this._const.removeAttribute: |
{ | ||
"name": "diff-dom", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "A diff for DOM elements, as client-side JavaScript code. Gets all modifications, insertions and removals between two DOM fragments.", | ||
@@ -5,0 +5,0 @@ "main": "diffDOM.js", |
Sorry, the diff of this file is not supported yet
338287
20