plasma.include() and member visibility

Amos Kariuki amoskahiga at gmail.com
Fri Jan 15 05:39:44 CET 2010


On Thu, Jan 14, 2010 at 4:31 PM, Sebastian Kügler <sebas at kde.org> wrote:
> On Thursday 14 January 2010 17:21:15 Amos Kariuki wrote:
>> var name = “Amos”;
>
>> plasmoid.include(“lib.js”);
>
> Does it work if you use " or ' instead of “and ”?

Doesn't work.

>
> Just a guess ...
> --
> sebas

Looking into the source, the include functionality is implemented in
ScriptEnv::include(), and all that seems to do is call QScriptEngine's
evaluate() method to evaluate the script. Hmm, maybe the feature
(exposing the included variables and functions) is just not available.

Amos Kariuki


More information about the Plasma-devel mailing list