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
, document = win.document
, 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 (){}
, 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",
"exportName": "Sortable",
"version": "0.1.0",
"version": "0.1.1",
"devDependencies": {
"grunt": "*",
"grunt-version": "*",

Loading…
Cancel
Save