File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ export function mousedownHandler(
18
18
opts : SortableOptions
19
19
) : [ VNode , undefined ] {
20
20
const item : Element = ev . currentTarget as Element ;
21
- const indexClicked = [ ...item . parentElement . children ] . indexOf ( item ) ;
21
+ const indexClicked = Array . prototype . slice
22
+ . call ( item . parentElement . children )
23
+ . indexOf ( item ) ;
22
24
23
25
const children = node . children
24
26
. map ( addData )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export function mousemoveHandler(
12
12
. map ( n => n . data . dataset . item )
13
13
. filter ( n => ! ! n ) [ 0 ] ;
14
14
15
- const siblings = [ ... item . parentElement . children ] ;
15
+ const siblings = Array . prototype . slice . call ( item . parentElement . children ) ;
16
16
const index = siblings . indexOf ( item ) ;
17
17
const ghost = siblings [ siblings . length - 1 ] ;
18
18
const itemArea = getArea ( ghost ) ;
Original file line number Diff line number Diff line change 2
2
"compileOnSave" : false ,
3
3
"compilerOptions" :
4
4
{
5
- "module " : " CommonJS " ,
5
+ "moduleResolution " : " node " ,
6
6
"sourceMap" : true ,
7
- "target" : " ES6" ,
8
- "outDir" : " build"
7
+ "target" : " ES5" ,
8
+ "outDir" : " build" ,
9
+ "lib" : [
10
+ " ES6" ,
11
+ " DOM"
12
+ ]
9
13
},
10
14
"include" : [
11
15
" src/**/*.ts" ,
You can’t perform that action at this time.
0 commit comments