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