workaround for "insert an element into the DOM that has already been inserted"

This commit is contained in:
Sven Fuchs 2012-07-04 12:22:14 +02:00
parent 75b2e1bd6c
commit 0224522aeb
4 changed files with 12 additions and 11 deletions

View File

@ -72,15 +72,15 @@ Travis.Layout.Home = Travis.Layout.Base.extend
@tabsController.set('repository', @repository)
@tabsController.set('build', build)
@tabsController.set('job', job)
@repositoryController.connectOutlet(outletName: 'tabs', name: 'tabs')
@homeController.connectOutlet(outletName: 'tabs', name: 'tabs')
connectBuilds: (builds) ->
@repositoryController.connectOutlet(outletName: 'tab', name: 'builds', context: builds)
@homeController.connectOutlet(outletName: 'tab', name: 'builds', context: builds)
connectBuild: (build) ->
@repositoryController.connectOutlet(outletName: 'tab', name: 'build', context: build)
@homeController.connectOutlet(outletName: 'tab', name: 'build', context: build)
connectJob: (job) ->
@repositoryController.connectOutlet(outletName: 'tab', name: 'job', context: job)
@homeController.connectOutlet(outletName: 'tab', name: 'job', context: job)

View File

@ -28,6 +28,13 @@
<div id="main">
{{outlet main}}
{{outlet tabs}}
<div class="tab">
{{outlet tab}}
</div>
<div id="right">
{{outlet right}}
</div>

View File

@ -13,11 +13,5 @@
<li><a class="watchers" title="Watches" {{bindAttr href="urlGithubWatchers"}}>{{stats.watchers}}</a></li>
<li><a class="forks" title="Forks" {{bindAttr href="urlGithubNetwork"}}>{{stats.forks}}</a></li>
</ul>
{{outlet tabs}}
<div class="tab">
{{outlet tab}}
</div>
</div>
{{/unless}}

File diff suppressed because one or more lines are too long