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