FUEL/0.1/API

From MozillaWiki
< FUEL‎ | 0.1
Jump to: navigation, search

< FUEL/0.1

Official FUEL documentation is here, on Mozilla Developer Center

Application

Properties:

  • id is a String [readonly]
  • name is a String [readonly]
  • version is a String [readonly]
  • extensions is an Extensions
  • events is an Events
  • prefs is a PreferenceBranch
  • storage is a SessionStorage

Events

Methods:

  • addListener( String, Function )
  • removeListener( String, Function )

Extension

Properties:

  • id is a String [readonly]
  • name is a String [readonly]
  • version is a String [readonly]
  • events is a Events
  • prefs is a PreferenceBranch
  • storage is a SessionStorage

Extensions

Properties:

  • all is a Array<Extension> [readonly]

Methods:

  • has( String|Extension ) returns a Boolean
  • get( String ) returns an Extension

Preference

Properties:

  • name is a String [readonly]
  • type is a String [readonly]
  • value is an Object [read/write]
  • locked is a Boolean [read/write]
  • modified is a Boolean [readonly]
  • branch is a PreferenceBranch
  • events is an Events

Methods:

  • reset()

PreferenceBranch

Properties:

  • root is a String [readonly]
  • all is a Array<Preference> [readonly]
  • events is an Events

Methods:

  • has( String ) returns a Boolean
  • get( String ) returns a Preference
  • getValue( String, Object ) returns an Object
  • setValue( String, Object )
  • reset()

SessionStorage

Properties:

  • events is an Events

Methods:

  • has( String ) returns a Boolean
  • get( String, String ) returns an String
  • set( String, String )