projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f9f6c6
)
Don't need to cycle through the last 2 elements
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 10 Feb 2009 20:30:43 +0000
(13:30 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 10 Feb 2009 20:30:43 +0000
(13:30 -0700)
imp/js/src/DimpBase.js
patch
|
blob
|
history
diff --git
a/imp/js/src/DimpBase.js
b/imp/js/src/DimpBase.js
index
a875b7a
..
02dd435
100644
(file)
--- a/
imp/js/src/DimpBase.js
+++ b/
imp/js/src/DimpBase.js
@@
-305,7
+305,9
@@
var DimpBase = {
elt.addClassName('on');
// Make sure all subfolders are expanded
- elt.ancestors().find(function(n) {
+ // The last 2 elements of ancestors() are the BODY and HTML tags -
+ // don't need to parse through them.
+ elt.ancestors().slice(0, -2).find(function(n) {
if (n.hasClassName('subfolders')) {
this._toggleSubFolder(n.id.substring(3), 'exp');
} else {