diff --git a/source/cookbook/working_with_objects/continuous_redrawing_of_views.md b/source/cookbook/working_with_objects/continuous_redrawing_of_views.md index 34e674387..635d7cf2f 100644 --- a/source/cookbook/working_with_objects/continuous_redrawing_of_views.md +++ b/source/cookbook/working_with_objects/continuous_redrawing_of_views.md @@ -96,7 +96,7 @@ 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() }); ``` @@ -104,18 +104,18 @@ export default Ember.ObjectController.extend({ 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`