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) { this.value = function(value) {
return this.all(function(node, value) { return this.all(function(node, val) {
if (node.value) { if (node.value) {
if (value) if (typeof (val) !== 'undefined')
node.value = value; node.value = val;
return node.value; return node.value;
} }
return null; return null;