Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 1 commit
  • 7 files changed
  • 0 comments
  • 1 contributor
2  app/assets/javascripts/bingo/models/cell.js.coffee
... ... @@ -1,4 +1,4 @@
1   -window.Cell = Backbone.Model.extend
  1 +class window.Cell extends Backbone.Model
2 2 initialize: ->
3 3 @id = @get 'hash'
4 4 @url = "/games/#{Card.game_id}/cards/#{Card.id}/clicked"
4 app/assets/javascripts/bingo/models/move.js.coffee
... ... @@ -1,8 +1,8 @@
1   -window.Move = Backbone.Model.extend
  1 +class window.Move extends Backbone.Model
2 2 initialize: ->
3 3 @id = @get 'hash'
4 4
5   -window.Moves = Backbone.Collection.extend
  5 +class window.Moves extends Backbone.Collection
6 6 model: Move
7 7 initialize: ->
8 8 @url = "/games/#{Card.game_id}/moves"
5 app/assets/javascripts/bingo/models/player.js.coffee
... ... @@ -1,2 +1,3 @@
1   -window.Player = Backbone.Model.extend()
2   -window.Players = Backbone.Collection.extend()
  1 +class window.Player extends Backbone.Model
  2 +
  3 +class window.Players extends Backbone.Collection
2  app/assets/javascripts/bingo/views/board_view.js.coffee
... ... @@ -1,5 +1,5 @@
1 1 # renders the playing board
2   -window.BoardView = Backbone.View.extend
  2 +class window.BoardView extends Backbone.View
3 3 className: 'card'
4 4
5 5 render: ->
2  app/assets/javascripts/bingo/views/cell_view.js.coffee
... ... @@ -1,6 +1,6 @@
1 1 # controls the individual cell. it tracks if the cell is highlighted or not, and which users
2 2 # are holding this cell as well as our current user
3   -window.CellView = Backbone.View.extend
  3 +class window.CellView extends Backbone.View
4 4 className: 'cell'
5 5 events:
6 6 'click': 'clicked'
4 app/assets/javascripts/bingo/views/players_view.js.coffee
... ... @@ -1,11 +1,11 @@
1   -window.PlayerView = Backbone.View.extend
  1 +class window.PlayerView extends Backbone.View
2 2 tagName: 'li'
3 3
4 4 render: ->
5 5 ($ @el).text @model.get('info').name
6 6 @
7 7
8   -window.PlayersView = Backbone.View.extend
  8 +class window.PlayersView extends Backbone.View
9 9 tagName: 'div'
10 10
11 11 initialize: ->
2  app/assets/javascripts/bingo/views/row_view.js.coffee
... ... @@ -1,5 +1,5 @@
1 1 # controls a single row of cells, not entirely useful
2   -window.RowView = Backbone.View.extend
  2 +class window.RowView extends Backbone.View
3 3 className: 'clearfix'
4 4
5 5 render: ->

No commit comments for this range

Something went wrong with that request. Please try again.