Commit 1eec1f4f20a13d8110757fb5027462346aa0a9fc
Exists in
spb-stable
and in
3 other branches
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
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 |