mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Builder.toFragment creates outlet references on the fragment.
This commit is contained in:
@@ -25,7 +25,12 @@ class Builder
|
||||
_.map(@document, (x) -> x.toHtml()).join('')
|
||||
|
||||
toFragment: ->
|
||||
$(@toHtml())
|
||||
fragment = $(@toHtml())
|
||||
fragment.find('[outlet]').each ->
|
||||
elt = $(this)
|
||||
outletName = elt.attr('outlet')
|
||||
fragment[outletName] = elt
|
||||
fragment
|
||||
|
||||
tag: (name, args...) ->
|
||||
options = @extractOptions(args)
|
||||
|
||||
Reference in New Issue
Block a user