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
b47432a7
Commit
b47432a7
authored
7 years ago
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable Array destructuring and polyfill Symbol class
parent
5f729268
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/assets/javascripts/commons/polyfills.js
app/assets/javascripts/commons/polyfills.js
+1
-0
app/assets/javascripts/diff.js
app/assets/javascripts/diff.js
+1
-4
No files found.
app/assets/javascripts/commons/polyfills.js
View file @
b47432a7
...
...
@@ -4,6 +4,7 @@ import 'core-js/fn/object/assign';
import
'
core-js/fn/promise
'
;
import
'
core-js/fn/string/code-point-at
'
;
import
'
core-js/fn/string/from-code-point
'
;
import
'
core-js/fn/symbol
'
;
// Browser polyfills
import
'
./polyfills/custom_event
'
;
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/diff.js
View file @
b47432a7
...
...
@@ -34,10 +34,7 @@ class Diff {
handleClickUnfold
(
e
)
{
const
$target
=
$
(
e
.
target
);
// current babel config relies on iterators implementation, so we cannot simply do:
// const [oldLineNumber, newLineNumber] = this.lineNumbers($target.parent());
const
ref
=
this
.
lineNumbers
(
$target
.
parent
());
const
oldLineNumber
=
ref
[
0
];
const
newLineNumber
=
ref
[
1
];
const
[
oldLineNumber
,
newLineNumber
]
=
this
.
lineNumbers
(
$target
.
parent
());
const
offset
=
newLineNumber
-
oldLineNumber
;
const
bottom
=
$target
.
hasClass
(
'
js-unfold-bottom
'
);
let
since
;
...
...
This diff is collapsed.
Click to expand it.
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