On Sat, Jun 4, 2011 at 1:19 PM, Marco Martin <notm...@gmail.com> wrote:

>
> try to do
> for (item in map) {
>     print(item)
>     print(map[item])
> }
>
>
>
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:
TypeError: Result of expression 'dataSource.data["PowerDevil"]' [undefined]
is not an object.

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.
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to