API Docs for:
Show:

models.client.Tag Class

Defined in: bundle.js:4142
Module: filesize

Client Tag model

Methods

createdAt

() Date

Inherited from models.BaseMixin but overwritten in models/BaseMixin.js:12

Returns:

Date:

deletedAt

() Date

Inherited from models.BaseMixin but overwritten in models/BaseMixin.js:36

Returns:

Date:

dispose

()

Inherited from models.client.Base but overwritten in models/client/Base.js:191

Call when not using this model anymore. Unbinds all event listeners.

getStatus

() String

Inherited from models.TagMixin but overwritten in models/TagMixin.js:19

Get status part of the tag if the tag is status tag

Returns:

String:

hasVisibility

(
  • visibility
  • models
)

Visibility assertion helper

Parameters:

  • visibility String
  • models Array

    Array of models.server.Visibility models

Returns:

Boolean

isSame

(
  • other
)

Inherited from models.BaseMixin but overwritten in models/BaseMixin.js:48

Return true if the other object is built using the same constructor and they have the same id

Parameters:

Returns:

Boolean

isSoftDeleted

() Boolean

Inherited from models.BaseMixin but overwritten in models/BaseMixin.js:28

Returns:

Boolean:

isStatusTag

() Boolean

Inherited from models.TagMixin but overwritten in models/TagMixin.js:9

Returns true if the tag is a status tag

Returns:

Boolean:

rel

(
  • key
)
Object | Array

Inherited from models.client.Base but overwritten in models/client/Base.js:145

Return relation data for given key or throw if it's not loaded

Parameters:

  • key String

Returns:

Object | Array:

Relation data

save

() Bluebird.Promise

Inherited from models.client.Base but overwritten in models/client/Base.js:163

Save model to server http://backbonejs.org/#Model-save

Returns:

Bluebird.Promise:

with the new saved model

uniqueId

() String

Inherited from models.client.Base but overwritten in models/client/Base.js:134

Returns:

String:

updatedAt

() Date

Inherited from models.BaseMixin but overwritten in models/BaseMixin.js:20

Returns:

Date:

wasCreatedInVicinity

() Boolean

Inherited from models.client.Base but overwritten in models/client/Base.js:200

Return true if the another model was created within 60 seconds of this one by the same user

Returns:

Boolean:

Properties

idAttribute

String

Inherited from models.client.Base but overwritten in models/client/Base.js:119

Use unique_id from models.server.Base as the model id. We need this to be able to put models of diffent type to a single Backbone collection http://backbonejs.org/#Model-idAttribute

saving

Bluebird.Promise | Null

Inherited from models.client.Base but overwritten in models/client/Base.js:182

Promise of the saving operation instantiated by Base#save(). Available only when the operation is ongoing.