Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Commit

Permalink
some misc formatting cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Mar 27, 2015
1 parent f57cc53 commit 404c3c3
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,26 @@ comment was created.

```app/controllers/comment-item.js
export default Ember.ObjectController.extend({
seconds: Ember.computed.oneWay('clock.pulse').readOnly()
seconds: Ember.computed.oneWay('clock.pulse').readOnly()
});
```

```app/controllers/comments.js
import ClockService from '../services/clock';

export default Ember.ArrayController.extend({
itemController: 'commentItem',
comment: null,
actions: {
add: function () {
this.addObject(Em.Object.create({
comment: this.get('comment'),
clock: ClockService.create()
}));
this.set('comment', null);
}
itemController: 'commentItem',
comment: null,
actions: {
add: function () {
this.addObject(Em.Object.create({
comment: this.get('comment'),
clock: ClockService.create()
}));
this.set('comment', null);
}
});
}
});
```

### Handlebars template which displays the `pulse`
Expand Down

0 comments on commit 404c3c3

Please sign in to comment.