FUEL/0.1/API
From MozillaWiki
< FUEL/0.1
Official FUEL documentation is here, on Mozilla Developer Center
Application
Properties:
-
id
is aString
[readonly] -
name
is aString
[readonly] -
version
is aString
[readonly] -
extensions
is anExtensions
-
events
is anEvents
-
prefs
is aPreferenceBranch
-
storage
is aSessionStorage
Events
Methods:
-
addListener( String, Function )
-
removeListener( String, Function )
Extension
Properties:
-
id
is aString
[readonly] -
name
is aString
[readonly] -
version
is aString
[readonly] -
events
is aEvents
-
prefs
is aPreferenceBranch
-
storage
is aSessionStorage
Extensions
Properties:
-
all
is aArray<Extension>
[readonly]
Methods:
-
has( String|Extension )
returns aBoolean
-
get( String )
returns anExtension
Preference
Properties:
-
name
is aString
[readonly] -
type
is aString
[readonly] -
value
is anObject
[read/write] -
locked
is aBoolean
[read/write] -
modified
is aBoolean
[readonly] -
branch
is aPreferenceBranch
-
events
is anEvents
Methods:
-
reset()
PreferenceBranch
Properties:
-
root
is aString
[readonly] -
all
is aArray<Preference>
[readonly] -
events
is anEvents
Methods:
-
has( String )
returns aBoolean
-
get( String )
returns aPreference
-
getValue( String, Object )
returns anObject
-
setValue( String, Object )
-
reset()
SessionStorage
Properties:
-
events
is anEvents
Methods:
-
has( String )
returns aBoolean
-
get( String, String )
returns anString
-
set( String, String )