Skip to content

Commit

Permalink
CoffeeScript flunks on preserving JavaScript behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Mar 15, 2012
1 parent 551c11c commit 7ddd90c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/mercury/uploader.js.coffee
Expand Up @@ -35,10 +35,10 @@ jQuery.extend Mercury.uploader,
return !!(xhr.upload && xhr.sendAsBinary && (Mercury.uploader.fileReaderSupported() || Mercury.uploader.formDataSupported()))

fileReaderSupported: ->
!!('FileReader' in window)
!!(window.FileReader)

formDataSupported: ->
!!('FormData' in window)
!!(window.FormData)

build: ->
@element = jQuery('<div>', {class: 'mercury-uploader', style: 'display:none'})
Expand Down

0 comments on commit 7ddd90c

Please sign in to comment.