Commit fcdb34373fea4cccc635bbe92f70e47d093b80a8

Authored by Yatish Mehta
1 parent 1f988a22

Consistent format for class objects in javascript

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