projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resources/RooUsage.txt
[app.Builder.js]
/
resources
/
roo.builder.js
diff --git
a/resources/roo.builder.js
b/resources/roo.builder.js
index
24496ea
..
a53f114
100644
(file)
--- a/
resources/roo.builder.js
+++ b/
resources/roo.builder.js
@@
-78,15
+78,17
@@
Builder = {
if (tagName) {
var attr = [];
for(i = 0; i < currentElement.attributes.length;i++) {
if (tagName) {
var attr = [];
for(i = 0; i < currentElement.attributes.length;i++) {
- var aname = currentElement.attributes.item(i).name;
- if (aname=='id') {
+ var attre = currentElement.attributes.item(i);
+ var aname = attre.name;
+ var aval = attre.value || '';
+ if (aname=='id' && aval.match(/^roo\-/)) { // only roo -elements hide..
aname= 'xbuilderid';
}
aname= 'xbuilderid';
}
- // skip
- if (
currentElement.attributes.item(i).value == 'builderel') {
+ // skip
-- component created by the builder?
+ if (
aval == 'builderel') {
return;
}
return;
}
- attr.push(aname + '="' +
currentElement.attributes.item(i).value + '"' );
+ attr.push(aname + '="' +
aval + '"' ); //?? escaping attributes?
}
}
@@
-341,7
+343,7
@@
Builder = {
}
tree.el.attr('xtype', tree['|xns'] + '.' + tree['xtype']);
}
tree.el.attr('xtype', tree['|xns'] + '.' + tree['xtype']);
-
+ //Roo.log(tree);
//Roo.log("Add xtype")
//Roo.log("Add xtype")