Skip to content

Commit b17be99

Browse files
Preparing new version
1 parent 09cdcbf commit b17be99

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

dist/vuedraggable.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

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-
53
(function () {
64
"use strict";
75

@@ -162,7 +160,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
162160
var _this4 = this;
163161

164162
this.$nextTick(function () {
165-
_this4.$emit('changes', evt);
163+
_this4.$emit('change', evt);
166164
});
167165
},
168166
spliceList: function spliceList() {
@@ -227,8 +225,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
227225
var oldIndex = this.context.index;
228226
var newIndex = this.visibleIndexes[evt.newIndex];
229227
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 });
232230
},
233231
onDragMove: function onDragMove(evt) {
234232
var onMove = this.move;
@@ -249,7 +247,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
249247
return draggableComponent;
250248
}
251249

252-
if ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) == "object") {
250+
if (typeof exports == "object") {
253251
var Sortable = require("sortablejs");
254252
module.exports = buildDraggable(Sortable);
255253
} else if (typeof define == "function" && define.amd) {

dist/vuedraggable.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuedraggable",
3-
"version": "2.6.0-rc0",
3+
"version": "2.7.0-rc0",
44
"description": "draggable component for vue",
55
"main": "dist/vuedraggable.js",
66
"files": [

0 commit comments

Comments
 (0)