Builder.subview wires an outlet directly, rather than assigning an outlet property.

This commit is contained in:
Corey Johnson & Nathan Sobo
2011-12-29 13:10:44 -06:00
parent b25fc80c9a
commit 0285c3d94d
2 changed files with 6 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ class Builder
subviewId = _.uniqueId('subview')
@tag 'div', id: subviewId
@postProcessingFns.push (view) ->
subview.attr('outlet', outletName)
view[outletName] = subview
view.find("div##{subviewId}").replaceWith(subview)
elementIsVoid: (name) ->