documenting javascript DataEgine and Runners

Will Stephenson wstephenson at kde.org
Tue Feb 2 10:28:58 CET 2010


On Monday 01 Feb 2010 17:35:24 Aaron J. Seigo wrote:
> On January 31, 2010, Will Stephenson wrote:
> > Speaking of this, was there a JS API change between 4.4 and trunk?
> 
> there shouldn't be; they should be identical. the idea is to keep strict 
> compat in the JS API from 4.4.0 onward.
> 
> > Specifically, the plasmoid.dataEngine() method appears to have moved from
> > a global variable in 4.4 to a member of plasmoid.
> 
> i don't think that's changed at all, actually. the code is identical in
> both  4.4 and 4.5. i just tested with trunk and dataEngine is still,
> indeed, a global function.
> 
> i think that plasmoid.dataEngine would actually be better and more
> consistent,  but i'm not sure it's worth breaking whatever JS plasmoids
> exist prior to 4.4. there are already published JS plasmoids using the
> top-level method and while it is a wart it's a smallish one and probably
> not worth changing.

Ok, plasmoid.dataEngine() is used in 
 http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/DataEngine
- is that just wrong?

Will


More information about the Plasma-devel mailing list