Skip to content

Commit 0131160

Browse files
author
pc-david\david.desmaisons
committed
Update npm package and reference
1 parent 71b0645 commit 0131160

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

dist/vuedragablefor.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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,9 @@
5252
"url": "https://github.com/David-Desmaisons/Vue.Dragable.For/issues"
5353
},
5454
"license": "MIT",
55-
"homepage": "https://github.com/David-Desmaisons/Vue.Dragable.For#readme"
55+
"homepage": "https://github.com/David-Desmaisons/Vue.Dragable.For#readme",
56+
"repository":{
57+
"type" : "git",
58+
"url" : "https://github.com/David-Desmaisons/Vue.Dragable.For.git"
59+
}
5660
}

src/vuedragablefor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
bind : function () {
2222
var ctx = this;
2323
var options = this.params.options;
24-
options = (typeof options === "string") ? JSON.parse(options) : options;
24+
options = _.isString(options)? JSON.parse(options) : options;
2525
options = _.merge(options,{
2626
onUpdate: function (evt) {
2727
var collection = ctx.collection;
@@ -60,8 +60,8 @@
6060
}
6161

6262
if (typeof exports == "object") {
63-
var _ = require("lodash.js");
64-
var Sortable = require("Sortable.js");
63+
var _ = require("lodash");
64+
var Sortable = require("Sortable");
6565
module.exports = buildVueDragFor(_, Sortable);
6666
} else if (typeof define == "function" && define.amd) {
6767
define(['lodash', 'Sortable'], function(_, Sortable){ return buildVueDragFor(_, Sortable);});

0 commit comments

Comments
 (0)