diff --git a/02/script.coffee b/02/script.coffee index 37fe1a5..acbdd5a 100644 --- a/02/script.coffee +++ b/02/script.coffee @@ -23,9 +23,12 @@ jQuery -> # `addItem()` will be called via the `click` event on the button we added # in our `render` method. + # The @$ function runs queries scoped within the view's element. This + # allows us to be sure we are only adding to the 'ul' element within + # this view. addItem: -> @counter++ - $('ul').append "