Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorYatish Mehta <yatish.mehta@sungard.com>2014-03-28 12:31:06 +0400
committerYatish Mehta <yatish.mehta@sungard.com>2014-03-28 12:31:06 +0400
commitfcdb34373fea4cccc635bbe92f70e47d093b80a8 (patch)
treef01ade4e914405461e65b259cea95c863aa42b68 /app
parent1f988a224c11e2bcd38feae4c0af84607ec67df7 (diff)
Consistent format for class objects in javascript
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/commit/file.js.coffee6
-rw-r--r--app/assets/javascripts/commit/image-file.js.coffee2
2 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/commit/file.js.coffee b/app/assets/javascripts/commit/file.js.coffee
index a45ee58d1b4..4db9116a9de 100644
--- a/app/assets/javascripts/commit/file.js.coffee
+++ b/app/assets/javascripts/commit/file.js.coffee
@@ -1,7 +1,7 @@
class CommitFile
-
+
constructor: (file) ->
if $('.image', file).length
new ImageFile(file)
-
-this.CommitFile = CommitFile \ No newline at end of file
+
+@CommitFile = CommitFile
diff --git a/app/assets/javascripts/commit/image-file.js.coffee b/app/assets/javascripts/commit/image-file.js.coffee
index f901a9e28ff..607b85eb45c 100644
--- a/app/assets/javascripts/commit/image-file.js.coffee
+++ b/app/assets/javascripts/commit/image-file.js.coffee
@@ -125,4 +125,4 @@ class ImageFile
img.on 'load', =>
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
-this.ImageFile = ImageFile \ No newline at end of file
+@ImageFile = ImageFile