diff --git a/app/assets/javascripts/commit/file.js.coffee b/app/assets/javascripts/commit/file.js.coffee
index a45ee58d1b4924ce3c26ceabb43e066c677de4a5..4db9116a9de732eee56f3a77286b133084d8e757 100644
--- a/app/assets/javascripts/commit/file.js.coffee
+++ b/app/assets/javascripts/commit/file.js.coffee
@@ -1,7 +1,7 @@
 class CommitFile
-  
+
   constructor: (file) ->
     if $('.image', file).length
       new ImageFile(file)
-        
-this.CommitFile = CommitFile
\ No newline at end of file
+
+@CommitFile = CommitFile
diff --git a/app/assets/javascripts/commit/image-file.js.coffee b/app/assets/javascripts/commit/image-file.js.coffee
index f901a9e28ffeefebc42593bb07b1f9880efa8512..607b85eb45c292eeda2bdc99db81c68db7450572 100644
--- a/app/assets/javascripts/commit/image-file.js.coffee
+++ b/app/assets/javascripts/commit/image-file.js.coffee
@@ -125,4 +125,4 @@ class ImageFile
       img.on 'load', =>
         callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
 
-this.ImageFile = ImageFile
\ No newline at end of file
+@ImageFile = ImageFile