projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1f293c
)
tools/build_gtk_tree.js
author
Alan Knowles
<alan@roojs.com>
Thu, 9 Aug 2012 10:26:45 +0000
(18:26 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 9 Aug 2012 10:26:45 +0000
(18:26 +0800)
tools/build_gtk_tree.js
patch
|
blob
|
history
diff --git
a/tools/build_gtk_tree.js
b/tools/build_gtk_tree.js
index
84b153b
..
9502cf0
100644
(file)
--- a/
tools/build_gtk_tree.js
+++ b/
tools/build_gtk_tree.js
@@
-297,7
+297,11
@@
right:
tops[cls].pushUnique(par);
}
}
- function canTop(cls) {
+ function canTop(cls, rec) {
+ rec = rec || 0;
+ if (rec > 5) {
+ print("SKIP : ' + cls);
+ }
if (typeof(tops[cls]) == 'undefined') {
return false;
}
@@
-308,7
+312,7
@@
right:
if (cls == tops[cls][i]) {
continue;
}
- if (canTop(cls)) {
+ if (canTop(cls
, rec+1
)) {
return true;
}
}