1
1
'use strict' ;
2
2
3
+ var _extends = Object . assign || function ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] ; for ( var key in source ) { if ( Object . prototype . hasOwnProperty . call ( source , key ) ) { target [ key ] = source [ key ] ; } } } return target ; } ;
4
+
3
5
function _toConsumableArray ( arr ) { if ( Array . isArray ( arr ) ) { for ( var i = 0 , arr2 = Array ( arr . length ) ; i < arr . length ; i ++ ) { arr2 [ i ] = arr [ i ] ; } return arr2 ; } else { return Array . from ( arr ) ; } }
4
6
5
7
( function ( ) {
@@ -104,7 +106,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
104
106
optionsAdded [ 'on' + elt ] = emit . bind ( _this2 , elt ) ;
105
107
} ) ;
106
108
107
- var options = Object . assign ( { } , this . options , optionsAdded , { onMove : function onMove ( evt ) {
109
+ var options = _extends ( { } , this . options , optionsAdded , { onMove : function onMove ( evt ) {
108
110
return _this2 . onDragMove ( evt ) ;
109
111
} } ) ;
110
112
this . _sortable = new Sortable ( this . rootContainer , options ) ;
@@ -175,8 +177,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
175
177
this . list . splice ( newIndex , 0 , this . list . splice ( oldIndex , 1 ) [ 0 ] ) ;
176
178
} ,
177
179
getRelatedContextFromMoveEvent : function getRelatedContextFromMoveEvent ( _ref2 ) {
178
- var to = _ref2 . to ;
179
- var related = _ref2 . related ;
180
+ var to = _ref2 . to ,
181
+ related = _ref2 . related ;
180
182
181
183
var component = this . getUnderlyingPotencialDraggableComponent ( to ) ;
182
184
if ( ! component ) {
@@ -186,7 +188,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
186
188
var context = { list : list , component : component } ;
187
189
if ( to !== related && list && component . getUnderlyingVm ) {
188
190
var destination = component . getUnderlyingVm ( related ) ;
189
- return Object . assign ( destination , context ) ;
191
+ return _extends ( destination , context ) ;
190
192
}
191
193
192
194
return context ;
@@ -253,8 +255,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
253
255
var relatedContext = this . getRelatedContextFromMoveEvent ( evt ) ;
254
256
var draggedContext = this . context ;
255
257
var futureIndex = this . computeFutureIndex ( relatedContext , evt ) ;
256
- Object . assign ( draggedContext , { futureIndex : futureIndex } ) ;
257
- Object . assign ( evt , { relatedContext : relatedContext , draggedContext : draggedContext } ) ;
258
+ _extends ( draggedContext , { futureIndex : futureIndex } ) ;
259
+ _extends ( evt , { relatedContext : relatedContext , draggedContext : draggedContext } ) ;
258
260
return onMove ( evt ) ;
259
261
} ,
260
262
onDragEnd : function onDragEnd ( evt ) {
0 commit comments