Releases: Shopify/turbograft
Releases · Shopify/turbograft
v0.2.2
v0.2.1
v0.2.0
v0.1.20
v0.1.19
v0.0.18
V0.1.17
v0.1.16
Changes
- (#78) Added a method,
Page.onReplace(DOMnode, function)
. This allows the user of TurboGraft to register a function to be called exactly once when a specific node has been refreshed (be it a full page refresh, or a partial page refresh).
Example Usage
class MyFoo
constructor: (@node) ->
@bindSomeEventsOn(@node)
Page.onReplace(@node, @unbindSomeEvents.bind(this)) # we want to clean up all the events we bound to prevent leaking
unbindSomeEvents = ->
... # undo whatever we did in the `bindSomeEvents` function
v0.1.15
v0.1.14
Changes
- (#67) Iteratively add form elements to form data, instead of using clone approach, in order to maintain not adding input which don't have name attribute, but remedy textfield related bugs which were introduced.
- (#65) Add refresh-on-success-except attribute which allows for excepting sections of the page when refreshing on success