Consistent format for class objects in javascript

This commit is contained in:
Yatish Mehta
2014-03-28 14:01:06 +05:30
parent 1f988a224c
commit fcdb34373f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
class CommitFile
constructor: (file) ->
if $('.image', file).length
new ImageFile(file)
this.CommitFile = CommitFile
@CommitFile = CommitFile
@@ -125,4 +125,4 @@ class ImageFile
img.on 'load', =>
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
this.ImageFile = ImageFile
@ImageFile = ImageFile