Browse Source

Merge pull request #12 from markmarkoh/master

Updating destroy to remove draggable attributes
pull/13/head
Lebedev Konstantin 11 years ago
parent
commit
0fcdece48a
  1. 7
      Sortable.js
  2. 4
      Sortable.min.js
  3. 44
      package.json

7
Sortable.js

@ -378,6 +378,11 @@
_off(el, 'dragover', this._onDragOver);
_off(el, 'dragenter', this._onDragOver);
//remove draggable attributes
Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function(el) {
el.removeAttribute('draggable');
});
touchDragOverListeners.splice(touchDragOverListeners.indexOf(this._onDragOver), 1);
this._onDrop();
@ -503,7 +508,7 @@
};
Sortable.version = '0.1.5';
Sortable.version = '0.1.6';
// Export
return Sortable;

4
Sortable.min.js vendored

File diff suppressed because one or more lines are too long

44
package.json

@ -1,22 +1,26 @@
{
"name": "sortable",
"exportName": "Sortable",
"version": "0.1.5",
"devDependencies": {
"grunt": "*",
"grunt-version": "*",
"grunt-contrib-uglify": "*"
},
"description": "Sortable is a minimalist JavaScript library for modern browsers and touch devices. No jQuery.",
"main": "Sortable.js",
"scripts": {
"test": "grunt"
},
"repository": {
"type": "git",
"url": "git://github.com/rubaxa/Sortable.git"
},
"keywords": ["sortable", "reorder", "drag"],
"author": "Konstantin Lebedev <ibnRubaXa@gmail.com>",
"license": "MIT"
"name": "sortable",
"exportName": "Sortable",
"version": "0.1.6",
"devDependencies": {
"grunt": "*",
"grunt-version": "*",
"grunt-contrib-uglify": "*"
},
"description": "Sortable is a minimalist JavaScript library for modern browsers and touch devices. No jQuery.",
"main": "Sortable.js",
"scripts": {
"test": "grunt"
},
"repository": {
"type": "git",
"url": "git://github.com/rubaxa/Sortable.git"
},
"keywords": [
"sortable",
"reorder",
"drag"
],
"author": "Konstantin Lebedev <ibnRubaXa@gmail.com>",
"license": "MIT"
}

Loading…
Cancel
Save