dojox
»
collections
»
BinaryTree
» compare
dojox.collections.BinaryTree.compare
dojo.require("dojox.collections.BinaryTree");
defined in dojox/collections/BinaryTree.js
Usage
function (n)
(view source)
if
(
this
.
value
>
n.
value
)
{
return
1
;
}
if
(
this
.
value
<
n.
value
)
{
return
-1
;
}
return
0
;
parameter
type
description
n