Sha256: 3411a679477eefaa15938159a72ad8174c01085e33da02429594c5eeecd8cde4

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents


$(document).ready ->

  #
  #
  #
  Models.Place = Backbone.Model.extend

    url: ->
      if this.id
        return "/venues/" + this.id + '.json'
      if this.cityname
        return "/venues/in-city/" + this.cityname + ".json"
      else
        return "/venues.json"

    initialize: ->
      a = 'a'

  #
  #
  #
  Collections.Places = Backbone.Collection.extend

    model: Models.Place

    url: ->
      if this.cityname
        return "/venues/in-city/" + this.cityname + ".json"
      else
        return "/venues"

    initialize: (cityname) ->
      this.cityname = cityname
      this.fetch



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_lib-0.0.3 app/assets/javascripts/trash/models/places.coffee