minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-08-05 19:19:45 +03:00
parent 0d3e7a602d
commit 8d7a8693b9

View File

@ -348,10 +348,10 @@ var NUMBER =
module.NUMBER = module.NUMBER =
makeCIPattern('NUMBER', makeCIPattern('NUMBER',
function(obj, cmp){ function(obj, cmp){
// XXX do the .value test....
return obj === NUMBER return obj === NUMBER
|| (typeof(obj) == typeof(123) || (typeof(obj) == typeof(123)
&& (this.value.length == 1 ? && (this.value.length == 1
&& typeof(this.value[0]) == typeof(123)?
this.value[0] == obj this.value[0] == obj
// min/max... // min/max...
: this.value.length == 2 ? : this.value.length == 2 ?