20,741
edits
(→Status) |
|||
| Line 309: | Line 309: | ||
## | ## | ||
# instantiate a new element | # instantiate a new element | ||
me.myElement = m.root.createChild( ELEMENT_NAME ); | |||
me.myElement.set("view-number", view); | |||
return m; | return m; | ||
}, # new | }, # new | ||
| Line 324: | Line 323: | ||
]; | ]; | ||
foreach(var cam; | foreach(var cam; cameras) { | ||
var newCam = myElementTest.new( view: cam.view, width: cam.width, height: cam.height ); | var newCam = myElementTest.new( view: cam.view, width: cam.width, height: cam.height ); | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Related == | == Related == | ||
{{Appendix}} | {{Appendix}} | ||