Browse Source

#1: fixed IE10+ (CustomEvent)

pull/10/head
RubaXa 11 years ago
parent
commit
4b371d31c5
  1. 13
      Sortable.js
  2. 2
      Sortable.min.js
  3. 2
      package.json

13
Sortable.js

@ -36,7 +36,18 @@
, win = window , win = window
, document = win.document , document = win.document
, parseInt = win.parseInt , parseInt = win.parseInt
, Event = win.CustomEvent
, Event = (function (){
function CustomEvent(event, params){
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
}
CustomEvent.prototype = win.CustomEvent.prototype;
return CustomEvent;
})()
, noop = function (){} , noop = function (){}
, slice = [].slice , slice = [].slice

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

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

Loading…
Cancel
Save