Commit 76c4421b26f2545f355d2bba6f573d5b0c780962

Authored by Dmitriy Zaporozhets
2 parents 9c6e5eab fcdb3437

Merge pull request #6639 from yatish27/ConsistentJSFormat

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