Visit Mozilla.org

FUEL/0.1/API

From MozillaWiki

< FUEL/0.1

Official FUEL documentation is here, on Mozilla Developer Center

Application [edit]

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 [edit]

Methods:

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

Extension [edit]

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 [edit]

Properties:

  • all is a Array<Extension> [readonly]

Methods:

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

Preference [edit]

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 [edit]

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 [edit]

Properties:

  • events is an Events

Methods:

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