Permalink
Browse files

CoffeeScript flunks on preserving JavaScript behavior

  • Loading branch information...
1 parent 551c11c commit 7ddd90ce8b0d95db7225839eba83a9b61c77df4b @mixonic mixonic committed Mar 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 vendor/assets/javascripts/mercury/uploader.js.coffee
@@ -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'})

0 comments on commit 7ddd90c

Please sign in to comment.