Constructor
new ParseConfig()
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) → {Promise}
Gets a new configuration object from the server.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
Valid options are:
|
Returns:
- Type:
-
Promise
A promise that is resolved with a newly-created configuration object when the get completes.
(static) save(attrs, masterKeyOnlyFlags) → {Promise}
Save value keys to the server.
Parameters:
Name | Type | Description |
---|---|---|
attrs |
Object
|
The config parameters and values. |
masterKeyOnlyFlags |
Object
|
The flags that define whether config parameters listed
in |
Returns:
- Type:
-
Promise
A promise that is resolved with a newly-created configuration object or with the current with the update.
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. |