Browse Source

#26: + supportIEdnd

pull/29/head
RubaXa 11 years ago
parent
commit
2a8272fac8
  1. 6
      Sortable.js
  2. 4
      Sortable.min.js
  3. 2
      bower.json
  4. 2
      package.json

6
Sortable.js

@ -40,6 +40,8 @@
, win = window , win = window
, document = win.document , document = win.document
, parseInt = win.parseInt , parseInt = win.parseInt
, supportIEdnd = !!document.createElement('div').dragDrop
, _silent = false , _silent = false
, _createEvent = function (event/**String*/, item/**HTMLElement*/){ , _createEvent = function (event/**String*/, item/**HTMLElement*/){
@ -97,7 +99,7 @@
_on(el, 'mousedown', this._onTapStart); _on(el, 'mousedown', this._onTapStart);
_on(el, 'touchstart', this._onTapStart); _on(el, 'touchstart', this._onTapStart);
_on(el, 'selectstart', this._onTapStart); supportIEdnd && _on(el, 'selectstart', this._onTapStart);
_on(el, 'dragover', this._onDragOver); _on(el, 'dragover', this._onDragOver);
_on(el, 'dragenter', this._onDragOver); _on(el, 'dragenter', this._onDragOver);
@ -531,7 +533,7 @@
}; };
Sortable.version = '0.1.8'; Sortable.version = '0.1.9';
// Export // Export
return Sortable; return Sortable;

4
Sortable.min.js vendored

File diff suppressed because one or more lines are too long

2
bower.json

@ -1,7 +1,7 @@
{ {
"name": "Sortable", "name": "Sortable",
"main": "Sortable.js", "main": "Sortable.js",
"version": "0.1.8", "version": "0.1.9",
"homepage": "http://rubaxa.github.io/Sortable/", "homepage": "http://rubaxa.github.io/Sortable/",
"authors": [ "authors": [
"RubaXa <ibnRubaXa@gmail.com>" "RubaXa <ibnRubaXa@gmail.com>"

2
package.json

@ -1,7 +1,7 @@
{ {
"name": "sortable", "name": "sortable",
"exportName": "Sortable", "exportName": "Sortable",
"version": "0.1.8", "version": "0.1.9",
"devDependencies": { "devDependencies": {
"grunt": "*", "grunt": "*",
"grunt-version": "*", "grunt-version": "*",

Loading…
Cancel
Save