Sha256: a2d91b6a87dd28b8143045f07f5fda16d44660a04d5c16b7d3c909012bdcd16d

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

Backbone = require('backbone')
CardModel = require('./card')
$ = require('jquery')
config = require('../../shared/config.json')

module.exports = class Cards extends Backbone.Collection
  model: CardModel
  query: {}
  url: ()->
    url = '/api/cards.json?' + $.param(@query)
    if config.api_path
      url = config.api_path + url
    url
  parse: (response)->
    console.log response
    @page = response.page
    console.log @page
    response.cards

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carte-server-0.0.12 lib/carte/client/models/cards.coffee
carte-server-0.0.11 lib/carte/client/models/cards.coffee
carte-server-0.0.10 lib/carte/client/models/cards.coffee
carte-server-0.0.9 lib/carte/client/models/cards.coffee
carte-server-0.0.8 lib/carte/client/models/cards.coffee