Config

Parse. Config

Parse.Config is a local representation of configuration data that can be set from the Parse dashboard.

Constructor

new Config()

Methods

(static) current() → {Config}

Retrieves the most recently-fetched configuration object, either from memory or from local storage if necessary.

Returns:
Type:
Config

The most recently-fetched Parse.Config if it exists, else an empty Parse.Config.

(static) get(options) → {Parse.Promise}

Gets a new configuration object from the server.

Parameters:
Name Type Description
options Object

A Backbone-style options object. Valid options are:

  • success: Function to call when the get completes successfully.
  • error: Function to call when the get fails.

Returns:
Type:
Parse.Promise

A promise that is resolved with a newly-created configuration object when the get completes.

escape(attr)

Gets the HTML-escaped value of an attribute.

Parameters:
Name Type Description
attr String

The name of an attribute.

get(attr)

Gets the value of an attribute.

Parameters:
Name Type Description
attr String

The name of an attribute.