plasma.include() and member visibility

J Janz jj at juniorjanz.net
Thu Jan 14 18:12:54 CET 2010


I haven't tested that (I was about to by these days) but I guess it's just
include [1] instead of plasmoid.include ...

[1]
http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/API#Access_To_Packaged_Files

Sorry if I'm saying silliness ...

Cheers,
--
J (|´:¬{)»
---------------------------------------------
"Eu sou a ressurreição e a vida. Quem crê em mim, ainda que morra, viverá; e
todo o que vive e crê em mim não morrerá, eternamente. Crês isto?"
O Senhor, Jesus Cristo - Jo.11:25-26
---------------------------------------------


2010/1/14 Amos Kariuki <amoskahiga at gmail.com>

> I’m trying to create a javascript plasmoid with multiple modules.  My
> main.js file includes another script file; my problem is that I’m unable to
> reference the variables and functions declared in the included file.
> Example:
>
> [lib.js]
> var name = “Amos”;
>
>
> [main.js]
> plasmoid.include(“lib.js”);
> print(name);
>
> When I run the plasmoid, I get a message stating that x is undefined.  I’m
> I referencing the variables incorrectly or is there some other way to
> achieve what I want?
>
> Thanks,
> Amos Kariuki
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100114/4e20776f/attachment.htm 


More information about the Plasma-devel mailing list