diff --git a/package.json b/package.json new file mode 100644 index 0000000..ac9b612 --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "jquery-sortable", + "version": "0.9.12", + "readme": "README.md", + "repository": { + "type": "git", + "url": "https://github.com/dynamicaction/jquery-sortable" + } +} \ No newline at end of file diff --git a/source/js/jquery-sortable-min.js b/source/js/jquery-sortable-min.js index 3d2977a..13a0112 100644 --- a/source/js/jquery-sortable-min.js +++ b/source/js/jquery-sortable-min.js @@ -16,4 +16,4 @@ this.rootGroup.movePlaceholder(this,c,h,g)},getItemDimensions:function(){this.it getContainerGroup:function(a){var b=d.data(this.items[a],"subContainers");if(b===j){var c=this.$getChildren(this.items[a],"container"),b=!1;c[0]&&(b=d.extend({},this.options,{rootGroup:this.rootGroup,group:v++}),b=c[k](b).data(k).group);d.data(this.items[a],"subContainers",b)}return b},$getChildren:function(a,b){var c=this.rootGroup.options,e=c[b+"Path"],c=c[b+"Selector"],a=d(a);e&&(a=a.find(e));return a.children(c)},_serialize:function(a,b){var c=this,e=this.$getChildren(a,b?"item":"container").not(this.options.exclude).map(function(){return c._serialize(d(this), !b)}).get();return this.rootGroup.options.serialize(a,e,b)},traverse:function(a){d.each(this.items||[],function(){var b=d.data(this,"subContainers");b&&b.traverse(a)});a(this)},_clearDimensions:function(){this.itemDimensions=j},_destroy:function(){var a=this;this.target.off(o.start,this.handle);this.el.removeData(k);this.options.drop&&(this.group.containers=d.grep(this.group.containers,function(b){return b!=a}));d.each(this.items||[],function(){d.removeData(this,"subContainers")})}};var r={enable:function(){this.traverse(function(a){a.disabled= !1})},disable:function(){this.traverse(function(a){a.disabled=!0})},serialize:function(){return this._serialize(this.el,!0)},refresh:function(){this.traverse(function(a){a._clearDimensions()})},destroy:function(){this.traverse(function(a){a._destroy()})}};d.extend(q.prototype,r);d.fn[k]=function(a){var b=Array.prototype.slice.call(arguments,1);return this.map(function(){var c=d(this),e=c.data(k);if(e&&r[a])return r[a].apply(e,b)||this;!e&&(a===j||"object"===typeof a)&&c.data(k,new q(c,a));return this})}}(jQuery, -window,"sortable"); +window,"sortable1"); diff --git a/source/js/jquery-sortable.js b/source/js/jquery-sortable.js index 52c2432..72f1dda 100644 --- a/source/js/jquery-sortable.js +++ b/source/js/jquery-sortable.js @@ -690,4 +690,4 @@ }); }; -}(jQuery, window, 'sortable'); +}(jQuery, window, 'sortable1');