Sha256: 369685914f4850fc07fa8493cfbd63a5605a9430a882b3b6a7222d6818e1cebe

Contents?: true

Size: 933 Bytes

Versions: 4

Compression:

Stored size: 933 Bytes

Contents

#   create_button: (klass, fn) ->
#     id = AS.CK.Helpers.autoId()
#     id.query().live "click", -> 
#       if klass instanceof Collection
#         klass.add({})
#       else
#         new klass()
#     button id: id.string, fn
#   
#   delete_button: (model, fn) ->
#     id = AS.CK.Helpers.autoId()
#     id.query().live "click", -> model.destroy()
#     button id: id.string, fn

# # THIS IS WHY I WANT TO PUT DOM RIGHT IN COFFEESCRIPT
# 
# CoffeeKup.templates = {}
# # CoffeeKup.templateCache = {}
# # CoffeeKup.getTemplate = (templateName) ->
# #   CoffeeKup.templateCache[templateName] ?= do ->
# #     CoffeeKup.compile CoffeeKup.templates[templateName], locals: yes, hardcode: CoffeeKup.helpers
#     
# CoffeeKup.renderTemplate = (templateName, data, options = {}) ->
#   console.info "renderTemplate", arguments
#   CoffeeKup.render CoffeeKup.templates[templateName], data, locals: options, hardcode: CoffeeKup.helpers

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alpha-simprini-engine-0.0.4 app/assets/javascripts/lib/koffeecup_backbone_databind.coffee
alpha-simprini-engine-0.0.3 app/assets/javascripts/lib/koffeecup_backbone_databind.coffee
alpha-simprini-engine-0.0.2 app/assets/javascripts/lib/koffeecup_backbone_databind.coffee
alpha-simprini-engine-0.0.1 app/assets/javascripts/lib/koffeecup_backbone_databind.coffee