Skip to content

Commit a9f826f

Browse files
committed
port to v3.6
1 parent 1b33ac7 commit a9f826f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

guides/v3.6.0/applications/dependency-injection.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ export default Component.extend({
247247
if (!this.song) {
248248
return null;
249249
}
250+
250251
let applicationInstance = getOwner(this);
251252
let audioType = this.song.audioType;
253+
252254
return applicationInstance.lookup(`service:audio-${audioType}`);
253255
}),
254256

guides/v3.6.0/configuring-ember/embedding-applications.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ You can tell the application to append the application template to a
1414
different element by specifying its `rootElement` property:
1515

1616
```javascript {data-filename="app/app.js" data-diff="+4"}
17-
17+
import Application from '@ember/application';
18+
19+
//
1820

1921
App = Ember.Application.extend({
2022
rootElement: '#app',
@@ -23,7 +25,7 @@ App = Ember.Application.extend({
2325
Resolver
2426
});
2527

26-
28+
//
2729
```
2830

2931
This property can be specified as either an element or a

guides/v3.6.0/routing/preventing-and-retrying-transitions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import Route from '@ember/routing/route';
2525
export default Route.extend({
2626
actions: {
2727
willTransition(transition) {
28-
if (this.controller.get('userHasEnteredData') &&
28+
if (this.controller.userHasEnteredData &&
2929
!confirm('Are you sure you want to abandon progress?')) {
3030
transition.abort();
3131
} else {
@@ -78,7 +78,7 @@ import Route from '@ember/routing/route';
7878

7979
export default Route.extend({
8080
beforeModel(transition) {
81-
if (!this.controllerFor('auth').get('userIsLoggedIn')) {
81+
if (!this.controllerFor('auth').userIsLoggedIn) {
8282
let loginController = this.controllerFor('login');
8383
loginController.set('previousTransition', transition);
8484
this.transitionTo('login');

0 commit comments

Comments
 (0)