Merge pull request #6639 from yatish27/ConsistentJSFormat

Consistent format for class objects in javascript
This commit is contained in:
Dmitriy Zaporozhets 2014-04-03 11:36:44 +03:00
commit 76c4421b26
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
class CommitFile
constructor: (file) ->
if $('.image', file).length
new ImageFile(file)
this.CommitFile = CommitFile
@CommitFile = CommitFile

View File

@ -125,4 +125,4 @@ class ImageFile
img.on 'load', =>
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
this.ImageFile = ImageFile
@ImageFile = ImageFile