aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2009-10-03 19:31:53 -0300
committerSilvio <s1lv10@uol.com.br>2009-10-03 19:31:53 -0300
commit547d60eb4ede59fab51ad328e76f06f60865b21f (patch)
treea5b3ecca0fa544de85f2ac16feb1f98f23299ce6
parentf93809ff649ef8ce07f205a616160d3b3cf87d14 (diff)
downloadfinder_menu-547d60eb4ede59fab51ad328e76f06f60865b21f.tar.gz
finder_menu-547d60eb4ede59fab51ad328e76f06f60865b21f.tar.bz2
Minor change at connected()
-rw-r--r--finder_menu.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/finder_menu.js b/finder_menu.js
index 523229c..e6baeff 100644
--- a/finder_menu.js
+++ b/finder_menu.js
@@ -131,7 +131,9 @@ function ul2finder()
* child of parent of the another.
*/
function connected(a,b) {
- if (isparent(a,b) || isparent(b,a)) {
+ if (a == b) {
+ return true;
+ } else if (isparent(a,b) || isparent(b,a)) {
return true;
}
return false;