Show:

Module: data/backbone

data/backbone

Backbone data module.

See:

Extends

Classes

Resourced

Methods

Collection(properties, class_properties){Collection}

modules/data/backbone.js, line 205

Defines and creates a collection's class extending Backbone.Collection.

Name Type Description
properties Object

instance properties to add to this collection.

class_properties Object optional

class properties to add to this collection.

See:

Model(properties, class_properties){Model}

modules/data/backbone.js, line 195

Defines and creates a model's class extending Backbone.Model.

Name Type Description
properties Object

instance properties to add to this model.

class_properties Object optional

class properties to add to this model.

See:

newResource(resource, initial, options){Model|Collection}

modules/data/backbone.js, line 216

Instantiates a Backbone Model/Collection.

Name Type Description
resource function

the resource's constructor.

initial Object | Array | null optional

initial data to use to initialize the resource.

options Object optional

valid options for Backbone's Models/Collections construction.

Returns:
resource instance.