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