BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
8d865f62
Commit
8d865f62
authored
May 08, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove bind polyfill from notes.js
parent
d49be6c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
notes.js
app/assets/javascripts/notes.js
+18
-20
No files found.
app/assets/javascripts/notes.js
View file @
8d865f62
...
@@ -22,8 +22,6 @@ const normalizeNewlines = function(str) {
...
@@ -22,8 +22,6 @@ const normalizeNewlines = function(str) {
};
};
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
)
{
return
function
()
{
return
fn
.
apply
(
me
,
arguments
);
};
};
this
.
Notes
=
(
function
()
{
this
.
Notes
=
(
function
()
{
const
MAX_VISIBLE_COMMIT_LIST_COUNT
=
3
;
const
MAX_VISIBLE_COMMIT_LIST_COUNT
=
3
;
const
REGEX_SLASH_COMMANDS
=
/
\/\w
+/g
;
const
REGEX_SLASH_COMMANDS
=
/
\/\w
+/g
;
...
@@ -31,24 +29,24 @@ const normalizeNewlines = function(str) {
...
@@ -31,24 +29,24 @@ const normalizeNewlines = function(str) {
Notes
.
interval
=
null
;
Notes
.
interval
=
null
;
function
Notes
(
notes_url
,
note_ids
,
last_fetched_at
,
view
)
{
function
Notes
(
notes_url
,
note_ids
,
last_fetched_at
,
view
)
{
this
.
updateTargetButtons
=
bind
(
this
.
updateTargetButtons
,
this
);
this
.
updateTargetButtons
=
this
.
updateTargetButtons
.
bind
(
this
);
this
.
updateComment
=
bind
(
this
.
updateComment
,
this
);
this
.
updateComment
=
this
.
updateComment
.
bind
(
this
);
this
.
visibilityChange
=
bind
(
this
.
visibilityChange
,
this
);
this
.
visibilityChange
=
this
.
visibilityChange
.
bind
(
this
);
this
.
cancelDiscussionForm
=
bind
(
this
.
cancelDiscussionForm
,
this
);
this
.
cancelDiscussionForm
=
this
.
cancelDiscussionForm
.
bind
(
this
);
this
.
addDiffNote
=
bind
(
this
.
addDiffNote
,
this
);
this
.
addDiffNote
=
this
.
addDiffNote
.
bind
(
this
);
this
.
setupDiscussionNoteForm
=
bind
(
this
.
setupDiscussionNoteForm
,
this
);
this
.
setupDiscussionNoteForm
=
this
.
setupDiscussionNoteForm
.
bind
(
this
);
this
.
replyToDiscussionNote
=
bind
(
this
.
replyToDiscussionNote
,
this
);
this
.
replyToDiscussionNote
=
this
.
replyToDiscussionNote
.
bind
(
this
);
this
.
removeNote
=
bind
(
this
.
removeNote
,
this
);
this
.
removeNote
=
this
.
removeNote
.
bind
(
this
);
this
.
cancelEdit
=
bind
(
this
.
cancelEdit
,
this
);
this
.
cancelEdit
=
this
.
cancelEdit
.
bind
(
this
);
this
.
updateNote
=
bind
(
this
.
updateNote
,
this
);
this
.
updateNote
=
this
.
updateNote
.
bind
(
this
);
this
.
addDiscussionNote
=
bind
(
this
.
addDiscussionNote
,
this
);
this
.
addDiscussionNote
=
this
.
addDiscussionNote
.
bind
(
this
);
this
.
addNoteError
=
bind
(
this
.
addNoteError
,
this
);
this
.
addNoteError
=
this
.
addNoteError
.
bind
(
this
);
this
.
addNote
=
bind
(
this
.
addNote
,
this
);
this
.
addNote
=
this
.
addNote
.
bind
(
this
);
this
.
resetMainTargetForm
=
bind
(
this
.
resetMainTargetForm
,
this
);
this
.
resetMainTargetForm
=
this
.
resetMainTargetForm
.
bind
(
this
);
this
.
refresh
=
bind
(
this
.
refresh
,
this
);
this
.
refresh
=
this
.
refresh
.
bind
(
this
);
this
.
keydownNoteText
=
bind
(
this
.
keydownNoteText
,
this
);
this
.
keydownNoteText
=
this
.
keydownNoteText
.
bind
(
this
);
this
.
toggleCommitList
=
bind
(
this
.
toggleCommitList
,
this
);
this
.
toggleCommitList
=
this
.
toggleCommitList
.
bind
(
this
);
this
.
postComment
=
bind
(
this
.
postComment
,
this
);
this
.
postComment
=
this
.
postComment
.
bind
(
this
);
this
.
notes_url
=
notes_url
;
this
.
notes_url
=
notes_url
;
this
.
note_ids
=
note_ids
;
this
.
note_ids
=
note_ids
;
...
...
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