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:
8e50a94
)
resources/roo.builder.js
author
Alan Knowles
<alan@roojs.com>
Wed, 27 Aug 2014 07:58:44 +0000
(15:58 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 27 Aug 2014 07:58:44 +0000
(15:58 +0800)
resources/roo.builder.js
patch
|
blob
|
history
diff --git
a/resources/roo.builder.js
b/resources/roo.builder.js
index
a520076
..
1a52c2e
100644
(file)
--- a/
resources/roo.builder.js
+++ b/
resources/roo.builder.js
@@
-94,10
+94,10
@@
Builder = {
while (currentElementChild) {
// Formatting code (indent the tree so it looks nice on the screen)
while (currentElementChild) {
// Formatting code (indent the tree so it looks nice on the screen)
- if (currentElementChild.node
_n
ame == '#text') {
- cb(currentElementChild.node
_v
alue);
+ if (currentElementChild.node
N
ame == '#text') {
+ cb(currentElementChild.node
V
alue);
i++;
i++;
- currentElementChild=currentElement.child
_n
odes.item(i);
+ currentElementChild=currentElement.child
N
odes.item(i);
continue;
}
allText = false;
continue;
}
allText = false;
@@
-111,7
+111,7
@@
Builder = {
// Recursively traverse the tree structure of the child node
this.traverseDOMTree(cb, currentElementChild, depth+1);
i++;
// Recursively traverse the tree structure of the child node
this.traverseDOMTree(cb, currentElementChild, depth+1);
i++;
- currentElementChild=currentElement.child
_n
odes.item(i);
+ currentElementChild=currentElement.child
N
odes.item(i);
}
if (!allText) {
// The remaining code is mostly for formatting the tree
}
if (!allText) {
// The remaining code is mostly for formatting the tree