enable Array destructuring and polyfill Symbol class
This commit is contained in:
parent
5f7292687a
commit
b47432a7e2
|
@ -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';
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue