Sha256: f7873b393ba14595da552d7266c61675dd15f7025b913d956c729397014b62e3
Contents?: true
Size: 404 Bytes
Versions: 6
Compression:
Stored size: 404 Bytes
Contents
Backbone = require('backbone') module.exports = class Card extends Backbone.Model idAttribute: 'title' isNew: ()-> @_isNew url: ()-> if @isNew() console.log @ console.log 'url is new' '/api/cards.json' else console.log 'url is not new' '/api/cards/' + @get('title') + '.json' parse: (response)-> if response.card then response.card else response
Version data entries
6 entries across 6 versions & 1 rubygems