thorax v2.0.0.rc1 Release Notes
-
- ๐ Numerous performance and bug fixes
- Thorax now requires Backbone 0.9.9 or later
- ๐ The "auto unbind" feature of
on(targetObject, eventName)
has been removed, implemented by Backbone aslistenTo
- ๐ Use of
Thorax.Router
is deprecated and no longer documented - โ Removed
ViewController
class - Views can now specify a
helpers
hash to call templates with - โ Removed Thorax.Util.getValue
renderTemplate
secondcontext
argument now overrides context passed to template instead of adding to itready
event now propagates to children- โ Added
view.appendTo
method - โ Added
bindDataObject
,unbindDataObject
methods - โ Added
thorax release
command to generate combined & minified files - ๐ New lumbar based build system,
thorax build
command line option has been removed - โ Add
removeItem
updateItem
methods for views rendering a collection - โ Remove
emptyContext
method andempty-context
collection helper argument - โ Add {{collection-element}} helper, to specify where in a view a collection should be rendered
- ๐
CollectionView
has been removed, collection rendering can now be done in any class - โ Added
itemFilter
method - ๐ Move
{{cid}}
,{{yield}}
special variables to private variables in handlebars (available with{{@cid}}
and{{@yield}}
).{{_view}}
is now avialable as{{@view}}
- Collection events bound with
on({collection: events})
no longer recieve aCollectionView
as the first argument - โช Revert: DOM event handlers now recieve the original context (if the handler had been registered with $.on) as the second argument