Commit 1eec1f4f20a13d8110757fb5027462346aa0a9fc

Authored by Dmitriy Zaporozhets
2 parents a7ab029d 76c4421b

Merge branch 'master' of github.com:gitlabhq/gitlabhq

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
... ...