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
Léo-Paul Géneau
gitlab-ce
Commits
a333f202
Commit
a333f202
authored
May 08, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove bind polyfill from line_highlighter.js
parent
98b5dd9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
app/assets/javascripts/line_highlighter.js
app/assets/javascripts/line_highlighter.js
+3
-5
No files found.
app/assets/javascripts/line_highlighter.js
View file @
a333f202
...
...
@@ -31,8 +31,6 @@ require('vendor/jquery.scrollTo');
// </div>
//
(
function
()
{
var
bind
=
function
(
fn
,
me
)
{
return
function
()
{
return
fn
.
apply
(
me
,
arguments
);
};
};
this
.
LineHighlighter
=
(
function
()
{
// CSS class applied to highlighted lines
LineHighlighter
.
prototype
.
highlightClass
=
'
hll
'
;
...
...
@@ -47,9 +45,9 @@ require('vendor/jquery.scrollTo');
// hash - String URL hash for dependency injection in tests
hash
=
location
.
hash
;
}
this
.
setHash
=
bind
(
this
.
setHash
,
this
);
this
.
highlightLine
=
bind
(
this
.
highlightLine
,
this
);
this
.
clickHandler
=
bind
(
this
.
clickHandler
,
this
);
this
.
setHash
=
this
.
setHash
.
bind
(
this
);
this
.
highlightLine
=
this
.
highlightLine
.
bind
(
this
);
this
.
clickHandler
=
this
.
clickHandler
.
bind
(
this
);
this
.
highlightHash
=
this
.
highlightHash
.
bind
(
this
);
this
.
_hash
=
hash
;
this
.
bindEvents
();
...
...
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