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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
306be281
Commit
306be281
authored
May 08, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove bind polyfill from files_comment_button.js
parent
09e2c1af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
app/assets/javascripts/files_comment_button.js
app/assets/javascripts/files_comment_button.js
+2
-3
No files found.
app/assets/javascripts/files_comment_button.js
View file @
306be281
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
/* global notes */
/* global notes */
let
$commentButtonTemplate
;
let
$commentButtonTemplate
;
var
bind
=
function
(
fn
,
me
)
{
return
function
()
{
return
fn
.
apply
(
me
,
arguments
);
};
};
window
.
FilesCommentButton
=
(
function
()
{
window
.
FilesCommentButton
=
(
function
()
{
var
COMMENT_BUTTON_CLASS
,
EMPTY_CELL_CLASS
,
LINE_COLUMN_CLASSES
,
LINE_CONTENT_CLASS
,
LINE_HOLDER_CLASS
,
LINE_NUMBER_CLASS
,
OLD_LINE_CLASS
,
TEXT_FILE_SELECTOR
,
UNFOLDABLE_LINE_CLASS
;
var
COMMENT_BUTTON_CLASS
,
EMPTY_CELL_CLASS
,
LINE_COLUMN_CLASSES
,
LINE_CONTENT_CLASS
,
LINE_HOLDER_CLASS
,
LINE_NUMBER_CLASS
,
OLD_LINE_CLASS
,
TEXT_FILE_SELECTOR
,
UNFOLDABLE_LINE_CLASS
;
...
@@ -27,8 +26,8 @@ window.FilesCommentButton = (function() {
...
@@ -27,8 +26,8 @@ window.FilesCommentButton = (function() {
TEXT_FILE_SELECTOR
=
'
.text-file
'
;
TEXT_FILE_SELECTOR
=
'
.text-file
'
;
function
FilesCommentButton
(
filesContainerElement
)
{
function
FilesCommentButton
(
filesContainerElement
)
{
this
.
render
=
bind
(
this
.
render
,
this
);
this
.
render
=
this
.
render
.
bind
(
this
);
this
.
hideButton
=
bind
(
this
.
hideButton
,
this
);
this
.
hideButton
=
this
.
hideButton
.
bind
(
this
);
this
.
isParallelView
=
notes
.
isParallelView
();
this
.
isParallelView
=
notes
.
isParallelView
();
filesContainerElement
.
on
(
'
mouseover
'
,
LINE_COLUMN_CLASSES
,
this
.
render
)
filesContainerElement
.
on
(
'
mouseover
'
,
LINE_COLUMN_CLASSES
,
this
.
render
)
.
on
(
'
mouseleave
'
,
LINE_COLUMN_CLASSES
,
this
.
hideButton
);
.
on
(
'
mouseleave
'
,
LINE_COLUMN_CLASSES
,
this
.
hideButton
);
...
...
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