mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Template extends view with @viewProperties and calls initialize with attributes passed to build.
This commit is contained in:
@@ -18,6 +18,9 @@ class Template
|
||||
@content(attributes)
|
||||
view = @builder.toFragment()
|
||||
@wireOutlets(view)
|
||||
if @viewProperties
|
||||
$.extend(view, @viewProperties)
|
||||
view.initialize?(attributes)
|
||||
view
|
||||
|
||||
wireOutlets: (view) ->
|
||||
|
||||
Reference in New Issue
Block a user