Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
fcdb3437
Commit
fcdb3437
authored
Mar 28, 2014
by
Yatish Mehta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistent format for class objects in javascript
parent
1f988a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/commit/file.js.coffee
app/assets/javascripts/commit/file.js.coffee
+3
-3
app/assets/javascripts/commit/image-file.js.coffee
app/assets/javascripts/commit/image-file.js.coffee
+1
-1
No files found.
app/assets/javascripts/commit/file.js.coffee
View file @
fcdb3437
class
CommitFile
class
CommitFile
constructor
:
(
file
)
->
constructor
:
(
file
)
->
if
$
(
'.image'
,
file
).
length
if
$
(
'.image'
,
file
).
length
new
ImageFile
(
file
)
new
ImageFile
(
file
)
this
.
CommitFile
=
CommitFile
@
CommitFile
=
CommitFile
\ No newline at end of file
app/assets/javascripts/commit/image-file.js.coffee
View file @
fcdb3437
...
@@ -125,4 +125,4 @@ class ImageFile
...
@@ -125,4 +125,4 @@ class ImageFile
img
.
on
'load'
,
=>
img
.
on
'load'
,
=>
callback
.
call
(
this
,
domImg
.
naturalWidth
,
domImg
.
naturalHeight
)
callback
.
call
(
this
,
domImg
.
naturalWidth
,
domImg
.
naturalHeight
)
this
.
ImageFile
=
ImageFile
@
ImageFile
=
ImageFile
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment