Sha256: 4656c95fae6beed663a198264052165b7e4a574aeef747a539a112aaea5a48f5

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 Bytes

Contents

namespace "SensuDashboard.Views", (exports) ->

  class exports.Base extends Backbone.View

    template: (args) ->
      tmpl = HandlebarsTemplates[@name]
      tmpl(args) if tmpl

    assign: (view, selector) ->
      view.setElement(@$(selector)).render()

    dispose: ->
      @remove()
      @off()
      @model.off(null, null , @) if @model
      @collection.off(null, null, @) if @collection

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sensu-dashboard-0.10.4 lib/sensu-dashboard/assets/javascripts/views/base.coffee
sensu-dashboard-0.10.3 lib/sensu-dashboard/assets/javascripts/views/base.coffee
sensu-dashboard-0.10.2 lib/sensu-dashboard/assets/javascripts/views/base.coffee
sensu-dashboard-0.10.1 lib/sensu-dashboard/assets/javascripts/views/base.coffee
sensu-dashboard-0.10.0 lib/sensu-dashboard/assets/javascripts/views/base.coffee
sensu-dashboard-0.9.9 lib/sensu-dashboard/assets/javascripts/views/base.coffee