mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-24 20:16:08 +10:00
Consistent format for class objects in javascript
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user