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:
054bf8c
)
resources/roo.builder.js
author
Alan Knowles
<alan@roojs.com>
Wed, 2 Dec 2015 02:24:17 +0000
(10:24 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 2 Dec 2015 02:24:17 +0000
(10:24 +0800)
resources/roo.builder.js
patch
|
blob
|
history
diff --git
a/resources/roo.builder.js
b/resources/roo.builder.js
index
7846171
..
098797a
100644
(file)
--- a/
resources/roo.builder.js
+++ b/
resources/roo.builder.js
@@
-78,8
+78,10
@@
Builder = {
if (tagName) {
var attr = [];
for(i = 0; i < currentElement.attributes.length;i++) {
- var aname = currentElement.attributes.item(i).name;
- if (aname=='id') {
+ var attr = currentElement.attributes.item(i);
+ var aname = attr.name;
+ var aval = attr.value || '';
+ if (aname=='id' && aval.match(/^roo-/)) { // only roo -elements hide..
aname= 'xbuilderid';
}
// skip