Skip to content

Commit

Permalink
Use Backbone.$ instead of $
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian-R committed Jan 9, 2015
1 parent 1c63e3e commit a1c6c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chaplin/views/collection_view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ utils = require 'chaplin/lib/utils'

toggleElement = (elem, visible) ->
if Backbone.$
$(elem).toggle visible
Backbone.$(elem).toggle visible
else
elem.style.display = (if visible then '' else 'none')

Expand All @@ -19,7 +19,7 @@ startAnimation = (elem, useCssAnimation, cls) ->

endAnimation = (elem, duration) ->
if Backbone.$
$(elem).animate {opacity: 1}, duration
Backbone.$(elem).animate {opacity: 1}, duration
else
elem.style.transition = "opacity #{(duration / 1000)}s"
elem.opacity = 1
Expand Down

0 comments on commit a1c6c52

Please sign in to comment.