<div dir="ltr"><div class="gmail_quote">On Sat, Jun 4, 2011 at 1:19 PM, Marco Martin <span dir="ltr"><<a href="mailto:notmart@gmail.com">notmart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
</div></div>try to do<br>
for (item in map) {<br>
print(item)<br>
print(map[item])<br>
}<br>
<font color="#888888"><br>
<br></font></blockquote><div><br></div><div>Well actually, i'm getting the data ( dataSource.data["PowerDevil"]["Available profiles"] ) inside Component.onCompleted and then running the for loop on it. But the execution stops saying:</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>TypeError: Result of expression 'dataSource.data["PowerDevil"]' [undefined] is not an object.</div><div><br></div><div>So it never goes into the for loop (I checked this by putting normal prints in the for loop). The above error occurs at all places in the plasmoid wherever I call the engine, but still gives the data. Here, it doesn't.</div>
<div><br></div></div></div>