Description
Can not create xul:cell and add it to xul:tree |
|
If we try to create a xul:treecell and set attribute "label" . the program crashes with following error:
Error: this.$getContainer("gateway") is null File:
http://127.0.0.1:8002/managers/lib/ample/languages/xul/xul.js Line:
6561 Column: 0
code snippet:
<script type="text/javascript">
function fun()
{
var sXulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
var ti = ample.getElementById('add-item'),
tc = ample.createElementNS(sXulNS, "xul:treerow"),
oItem = ample.createElementNS(sXulNS, "xul:treecell");
tc.appendChild(oItem);
oItem.setAttribute("label", "New item");
ti.appendChild(tc);
}
</script>
|
|