API Docs for:

Class Parse.Config

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

Parse.Config( )
Config current( )

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


Returns: <Config>

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

escape( attr )

Gets the HTML-escaped value of an attribute.

Parameters:
  • attr <String>

    The name of an attribute.

get( attr )

Gets the value of an attribute.

Parameters:
  • attr <String>

    The name of an attribute.

Parse.Promise get( options )

Gets a new configuration object from the server.

Parameters:
  • 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: <Parse.Promise>

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