diff options
author | Yatish Mehta <yatish.mehta@sungard.com> | 2014-03-28 12:31:06 +0400 |
---|---|---|
committer | Yatish Mehta <yatish.mehta@sungard.com> | 2014-03-28 12:31:06 +0400 |
commit | fcdb34373fea4cccc635bbe92f70e47d093b80a8 (patch) | |
tree | f01ade4e914405461e65b259cea95c863aa42b68 /app | |
parent | 1f988a224c11e2bcd38feae4c0af84607ec67df7 (diff) |
Consistent format for class objects in javascript
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/commit/file.js.coffee | 6 | ||||
-rw-r--r-- | app/assets/javascripts/commit/image-file.js.coffee | 2 |
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 |