File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -197,17 +197,17 @@ store.findRecord('person', 1).then(function(person) {
197
197
198
198
return person .get (' post' ); // get all the posts linked with person.
199
199
200
- }).then (function (posts ){
200
+ }).then (function (posts ) {
201
201
202
202
myFirstPost = posts .get (' firstObject' ); // get the first post from collection.
203
203
return myFirstPost .get (' comment' ); // get all the comments linked with myFirstPost.
204
204
205
- }).then (function (comments ){
205
+ }).then (function (comments ) {
206
206
207
207
// do something with comments
208
208
return store .findRecord (' book' , 1 ); // query for another record
209
209
210
- }).catch (function (err ){
210
+ }).catch (function (err ) {
211
211
212
212
// handle errors
213
213
@@ -223,4 +223,4 @@ For further reference you can consult Developer Network articles:
223
223
* [ ` var ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var )
224
224
* [ ` const ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const )
225
225
* [ ` let ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let ) .
226
- * [ ` promise ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise ) .
226
+ * [ ` Promise ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise ) .
Original file line number Diff line number Diff line change @@ -197,17 +197,17 @@ store.findRecord('person', 1).then(function(person) {
197
197
198
198
return person .get (' post' ); // get all the posts linked with person.
199
199
200
- }).then (function (posts ){
200
+ }).then (function (posts ) {
201
201
202
202
myFirstPost = posts .get (' firstObject' ); // get the first post from collection.
203
203
return myFirstPost .get (' comment' ); // get all the comments linked with myFirstPost.
204
204
205
- }).then (function (comments ){
205
+ }).then (function (comments ) {
206
206
207
207
// do something with comments
208
208
return store .findRecord (' book' , 1 ); // query for another record
209
209
210
- }).catch (function (err ){
210
+ }).catch (function (err ) {
211
211
212
212
// handle errors
213
213
@@ -223,4 +223,4 @@ For further reference you can consult Developer Network articles:
223
223
* [ ` var ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var )
224
224
* [ ` const ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const )
225
225
* [ ` let ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let ) .
226
- * [ ` promise ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise ) .
226
+ * [ ` Promise ` ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise ) .
You can’t perform that action at this time.
0 commit comments