Sha256: f4cb4a7633613c794f6df575928e0aad3dbe55d8d754fc02c7ea0939490e0047
Contents?: true
Size: 432 Bytes
Versions: 17
Compression:
Stored size: 432 Bytes
Contents
Locomotive.Views.Shared ||= {} class Locomotive.Views.Shared.ListItemView extends Backbone.View tagName: 'li' events: 'click a.remove': 'remove_item' template: -> # please overide template render: -> $(@el).html(@template()(@model.toJSON())) return @ remove_item: (event) -> event.stopPropagation() & event.preventDefault() if confirm $(event.target).data('confirm') @model.destroy()
Version data entries
17 entries across 17 versions & 1 rubygems