Permalink
Browse files

Improving DOM manipulation.

  • Loading branch information...
1 parent fe29965 commit 964b0396ab7daf66cc3ee9a54798cf118fa72ef6 @caike caike committed Jun 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/assets/javascripts/dom_ready.js.coffee
@@ -14,6 +14,6 @@ suggestTitle = ->
suggestAge = ->
year = $('#guitar_year').val()
age = Guitars.suggestAge(year)
- $('.guitar-age').show().
- find('#age').text(age)
-
+ guitarSpan = $('.guitar-age')
+ guitarSpan.find('#age').text(age)
+ guitarSpan.show()

0 comments on commit 964b039

Please sign in to comment.