Fix .value('') call

This commit is contained in:
Ilja Kartašov 2019-04-29 09:14:43 +02:00
parent 0f99cb0a4e
commit 9b93acfcef
1 changed files with 3 additions and 3 deletions

View File

@ -84,10 +84,10 @@ function JStuff(query)
}
this.value = function(value) {
return this.all(function(node, value) {
return this.all(function(node, val) {
if (node.value) {
if (value)
node.value = value;
if (typeof (val) !== 'undefined')
node.value = val;
return node.value;
}
return null;