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() → {Promise}

Gets a new configuration object from the server.

Returns:
Type:
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.