Merge pull request #6639 from yatish27/ConsistentJSFormat
Consistent format for class objects in javascript
This commit is contained in:
commit
76c4421b26
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue