Commit fcdb34373fea4cccc635bbe92f70e47d093b80a8

Authored by Yatish Mehta
1 parent 1f988a22

Consistent format for class objects in javascript

app/assets/javascripts/commit/file.js.coffee
1 class CommitFile 1 class CommitFile
2 - 2 +
3 constructor: (file) -> 3 constructor: (file) ->
4 if $('.image', file).length 4 if $('.image', file).length
5 new ImageFile(file) 5 new ImageFile(file)
6 -  
7 -this.CommitFile = CommitFile  
8 \ No newline at end of file 6 \ No newline at end of file
  7 +
  8 +@CommitFile = CommitFile
app/assets/javascripts/commit/image-file.js.coffee
@@ -125,4 +125,4 @@ class ImageFile @@ -125,4 +125,4 @@ class ImageFile
125 img.on 'load', => 125 img.on 'load', =>
126 callback.call(this, domImg.naturalWidth, domImg.naturalHeight) 126 callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
127 127
128 -this.ImageFile = ImageFile  
129 \ No newline at end of file 128 \ No newline at end of file
  129 +@ImageFile = ImageFile