mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 02:50:10 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d3e7a602d
commit
8d7a8693b9
4
diff.js
4
diff.js
@ -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 ?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user