Fix .value('') call
This commit is contained in:
parent
0f99cb0a4e
commit
9b93acfcef
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue