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:
229b7eb
)
src/JsRender/Roo.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 3 Mar 2015 06:25:34 +0000
(14:25 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 3 Mar 2015 06:25:34 +0000
(14:25 +0800)
src/JsRender/Roo.vala
patch
|
blob
|
history
diff --git
a/src/JsRender/Roo.vala
b/src/JsRender/Roo.vala
index
3de0fb8
..
10ce333
100644
(file)
--- a/
src/JsRender/Roo.vala
+++ b/
src/JsRender/Roo.vala
@@
-1,4
+1,17
@@
-
+/*
+ * Renderer for Javascript output (roo library based)
+ *
+ * - translation support
+ * - doubleStringProps contains elements that are 'translable'
+ * ** in the old method this our compression tool could extract them
+ * - the new idea is to make a list at the top of the javascript file
+ * and output a map...
+ *
+ *
+ *
+ *
+ *
+ */
namespace JsRender {
static int rid = 0;
namespace JsRender {
static int rid = 0;
@@
-305,7
+318,15
@@
namespace JsRender {
{
// iterate properties...
// use doubleStringProps
{
// iterate properties...
// use doubleStringProps
-
+ for (var i =0;i < this.doubleStringProps.size; i++) {
+ var k = this.doubleStringProps.get(i);
+ if (if (!node.has(k)) {
+ continue;
+ }
+ // if the value is raw ... then we can not convert it..
+
+ nlist.add(this.parent.items.get(i));
+ }
// iterate children..
// iterate children..
@@
-659,4
+680,4
@@
namespace JsRender {
}
}
-}
\ No newline at end of file
+}