Object
This is the Backbone model
that represent Record from the context.
Kind: global function
Returns: Object
- Record from the context.
Since: v0.0.1
Example
// undefined
getRecord() // -> {}
// defined
// context: {
// attributes: {
// model: {cid: "...", attributes: {...}, ...}
// }
// }
getRecord() // -> returns Backbone.Model -> {cid: "...", attributes: {...}, ...}
getRecord().get('name') // -> returns name of the record.
getRecord().toJSON() // -> return Object version of the data. -> {id: "...", name: "...", ...}