Home Reference Source Repository

Function

Static Public Summary
public

modelExtend(className: string | object, protoProps: object, staticProps: object): *

Provides extend functionality for Model that is compatible to the Parse SDK.

public

parseExtend(Backbone: Backbone)

Provides support for older "extend" functionality in addition to adding a utility method, "getHTTPSUrl" to retrieve an HTTPS url for Parse.Object and Backbone.Model.

public

parseSync(method: string, model: Model | Collection, options: object): * | ParsePromise

parseSync - Persists models to the server.

Static Public

public modelExtend(className: string | object, protoProps: object, staticProps: object): * source

import modelExtend from 'backbone-parse-es6/src/modelExtend.js'

Provides extend functionality for Model that is compatible to the Parse SDK.

Params:

NameTypeAttributeDescription
className string | object

Class name or object hash w/ className key

protoProps object

instance properties

staticProps object

class properties

Return:

*

Subclass of parent class.

public parseExtend(Backbone: Backbone) source

import parseExtend from 'backbone-parse-es6/src/parseExtend.js'

Provides support for older "extend" functionality in addition to adding a utility method, "getHTTPSUrl" to retrieve an HTTPS url for Parse.Object and Backbone.Model.

Params:

NameTypeAttributeDescription
Backbone Backbone

Backbone instance

public parseSync(method: string, model: Model | Collection, options: object): * | ParsePromise source

import parseSync from 'backbone-parse-es6/src/parseSync.js'

parseSync - Persists models to the server. (http://backbonejs.org/#Sync)

This version of sync uses Parse 1.6+ and ParseObject for Backbone.Model or Parse.Query for Backbone.Collections. You will be passed back a ParsePromise and can use it in a similar manner as one would with Parse SDK itself.

Dispatches to Model or Collection sync methods.

Params:

NameTypeAttributeDescription
method string

A string that defines the synchronization action to perform.

model Model | Collection

The model or collection instance to synchronize.

options object

Optional parameters.

Return:

* | ParsePromise