ServiceCell

ServiceCell

new ServiceCell(attributes, optionsopt)

Source:
Author:
  • kent.willis@vecna.com
See:

A service cell is a event listening and event emitting object that is independent of any model or view.

Parameters:
Name Type Attributes Default Description
attributes Object

the initial attributes to use for this service.

options Object <optional>
{}

the options for setting up this service.

Properties
Name Type Attributes Default Description
register boolean <optional>
true

whether to register this service in the app-level registry.
By default this WILL add it to the registry unless set to false because
most services are global so holding on to them beyond

Extends

Members

isModelCompatible

Source:
Inherited From:
Mixes In:
Default Value:
  • false
Properties:
Name Type Description
isModelCompatible boolean

Whether a cell can pass as a model or not.
If true, the cell will not fail is persisted functions are invoked
If false, the cell will throw exceptions if persisted function are invoked

Methods

fetch()

Source:
Inherited From:
Mixes In:

Override and disable the fetch function

save()

Source:
Inherited From:
Mixes In:

Override and disable the save function

sync()

Source:
Inherited From:
Mixes In:

Override and disable the sync function

url()

Source:
Inherited From:
Mixes In:

Override and disable the url