WebOS-Tools is a project mainly written in JavaScript, based on the MIT license.
Random classes for Web OS
AssistantBase:
To use:
var YourAssistant = Class.create(AssistantBase, {})
where the data in the hash is the class's functions and member variables. For more information on Prototype's Class.create() function, see http://www.prototypejs.org/api/class/create .
As a heads up, if you do want to override initialize, setup, cleanup, or deactivate, add $super as the first parameter for those functions, then call $super() as the first line.
===========
Preferences
To use:
{ 1: { // version number preference1: 'default for pref1', preference2: 'default for pref2' }, 2: { // next version preference3: 'default for pref3' } }
Ways to use: