1
1
'use strict' ;
2
2
3
- var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ;
4
-
5
3
( function ( ) {
6
4
"use strict" ;
7
5
@@ -162,7 +160,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
162
160
var _this4 = this ;
163
161
164
162
this . $nextTick ( function ( ) {
165
- _this4 . $emit ( 'changes ' , evt ) ;
163
+ _this4 . $emit ( 'change ' , evt ) ;
166
164
} ) ;
167
165
} ,
168
166
spliceList : function spliceList ( ) {
@@ -227,8 +225,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
227
225
var oldIndex = this . context . index ;
228
226
var newIndex = this . visibleIndexes [ evt . newIndex ] ;
229
227
this . updatePosition ( oldIndex , newIndex ) ;
230
- var updated = { element : this . context . element , oldIndex : oldIndex , newIndex : newIndex } ;
231
- this . emitChanges ( { updated : updated } ) ;
228
+ var moved = { element : this . context . element , oldIndex : oldIndex , newIndex : newIndex } ;
229
+ this . emitChanges ( { moved : moved } ) ;
232
230
} ,
233
231
onDragMove : function onDragMove ( evt ) {
234
232
var onMove = this . move ;
@@ -249,7 +247,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
249
247
return draggableComponent ;
250
248
}
251
249
252
- if ( ( typeof exports === 'undefined' ? 'undefined' : _typeof ( exports ) ) == "object" ) {
250
+ if ( typeof exports == "object" ) {
253
251
var Sortable = require ( "sortablejs" ) ;
254
252
module . exports = buildDraggable ( Sortable ) ;
255
253
} else if ( typeof define == "function" && define . amd ) {
0 commit comments