Sha256: 40e30d7b088bef6808c93c69896e80ab1c0e13ccd54f05d318b47c5f2b3667a5
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
Application.Views.Photos ||= {} class Application.Views.Photos.IndexView extends Backbone.View template: JST["backbone/templates/photos/index"] initialize: () -> @options.photos.bind('reset', @addAll) addAll: () => @options.photos.each(@addOne) addOne: (photo) => view = new Application.Views.Photos.PhotoView({model : photo}) @$("tbody").append(view.render().el) render: => @$el.html(@template(photos: @options.photos.toJSON() )) @addAll() return this
Version data entries
4 entries across 4 versions & 2 rubygems