Skull

Skull

Author:
  • <p>Konstantin Kitmanov [doctor.hogart@gmail.com]</p>
License:
  • MIT
Source:

Classes

Abstract
Application
Collection
Collection
Model
Model
Observable
ResourceRegistry
Syncer
Syncer
Template
UrlProvider
View
View

Methods

(static) detectDomain(attributeNameopt)

Detects host and protocol for your API from script[data-api-domain="http://my.api.example.com"]

Parameters:
Name Type Attributes Default Description
attributeName String <optional>
'data-api-domain'

Definitive attribute name

Source:

(static) extendCollection(baseCollectionClass, modelClassopt) → {constructor}

Extends given collection class with all Skull.Collection qualities. Useful when you need to use other collections, but still need DI, registry and other stuff.

Parameters:
Name Type Attributes Default Description
baseCollectionClass function
modelClass function <optional>
SkullModel
Source:
Returns:
Type
constructor

(static) extendModel(baseModelClass) → {constructor}

Extends given model class with all Skull.Model qualities. Useful when you need to use other models, e.g. http://afeld.github.io/backbone-nested/, but still want DI and registry.

Parameters:
Name Type Description
baseModelClass function
Source:
Returns:
Type
constructor

(static) extendView(baseViewClass) → {constructor}

Extends given view class with all Skull.View goodness.

Parameters:
Name Type Description
baseViewClass function
Source:
Returns:
Type
constructor