Showing
2 changed files
with
7 additions
and
7 deletions
@@ -24,7 +24,7 @@ class dummy extends c_xmlify | @@ -24,7 +24,7 @@ class dummy extends c_xmlify | ||
24 | $this->var1 = $v1; | 24 | $this->var1 = $v1; |
25 | $this->var2 = $v2; | 25 | $this->var2 = $v2; |
26 | $this->var3 = $v3; | 26 | $this->var3 = $v3; |
27 | - $this->var4 = $v4; | 27 | + $this->var4 = array ($v4, $v4); |
28 | } | 28 | } |
29 | }; | 29 | }; |
30 | 30 |
@@ -52,7 +52,7 @@ nBildertool.xmlToObjectArray = function (data) | @@ -52,7 +52,7 @@ nBildertool.xmlToObjectArray = function (data) | ||
52 | case 'class': | 52 | case 'class': |
53 | var cName = child.getAttribute ('class'); | 53 | var cName = child.getAttribute ('class'); |
54 | 54 | ||
55 | - if (typeof (eval (cName)) === 'function') | 55 | + if (eval ('typeof (' + cName + ') === \'function\'')) |
56 | ret[name] = eval ("new " + cName + "(child)"); | 56 | ret[name] = eval ("new " + cName + "(child)"); |
57 | else | 57 | else |
58 | ret[name] = nBildertool.xmlToObjectArray (child); | 58 | ret[name] = nBildertool.xmlToObjectArray (child); |
@@ -93,10 +93,10 @@ nBildertool.xmlToArray = function (data) | @@ -93,10 +93,10 @@ nBildertool.xmlToArray = function (data) | ||
93 | case 'class': | 93 | case 'class': |
94 | var cName = child.getAttribute ('class'); | 94 | var cName = child.getAttribute ('class'); |
95 | 95 | ||
96 | - if (typeof (eval (cName)) === 'function') | ||
97 | - ret[key] = eval ("new " + cName + "(child)"); | 96 | + if (eval ('typeof (' + cName + ') === \'function\'')) |
97 | + ret[key] = eval ("new " + cName + "(_child)"); | ||
98 | else | 98 | else |
99 | - ret[key] = nBildertool.xmlToObjectArray (child); | 99 | + ret[key] = nBildertool.xmlToObjectArray (_child); |
100 | } | 100 | } |
101 | } | 101 | } |
102 | } | 102 | } |
@@ -130,7 +130,7 @@ nBildertool.c_xmlify = function (data) | @@ -130,7 +130,7 @@ nBildertool.c_xmlify = function (data) | ||
130 | case 'class': | 130 | case 'class': |
131 | var cName = child.getAttribute ('class'); | 131 | var cName = child.getAttribute ('class'); |
132 | 132 | ||
133 | - if (typeof (eval (cName)) === 'function') | 133 | + if (eval ('typeof (' + cName + ') === \'function\'')) |
134 | this[name] = eval ("new " + cName + "(child)"); | 134 | this[name] = eval ("new " + cName + "(child)"); |
135 | else | 135 | else |
136 | this[name] = nBildertool.xmlToObjectArray (child); | 136 | this[name] = nBildertool.xmlToObjectArray (child); |
@@ -154,7 +154,7 @@ nBildertool.deXmlify = function (data) | @@ -154,7 +154,7 @@ nBildertool.deXmlify = function (data) | ||
154 | case 'class': | 154 | case 'class': |
155 | var cName = child.getAttribute ('class'); | 155 | var cName = child.getAttribute ('class'); |
156 | 156 | ||
157 | - if (typeof (eval (cName)) === 'function') | 157 | + if (eval ('typeof (' + cName + ') === \'function\'')) |
158 | ret = eval ("new " + cName + "(child)"); | 158 | ret = eval ("new " + cName + "(child)"); |
159 | else | 159 | else |
160 | ret = nBildertool.xmlToObjectArray (child); | 160 | ret = nBildertool.xmlToObjectArray (child); |
Please
register
or
login
to post a comment