Browse Source

+ master (0.5.2)

pull/126/merge
RubaXa 10 years ago
parent
commit
bc1d2665ea
  1. 5
      Sortable.js
  2. 2
      Sortable.min.js

5
Sortable.js

@ -149,10 +149,12 @@
}
// Check filter
if( typeof filter === 'function' && filter.call(this, target, this) ){
if( typeof filter === 'function' ){
if( filter.call(this, target, this) ){
_dispatchEvent(el, 'filter', target);
return; // cancel dnd
}
}
else if( filter ){
filter = filter.split(',').filter(function (criteria) {
return _closest(target, criteria.trim(), el);
@ -718,6 +720,7 @@
Sortable.version = '0.6.0';
/**
* Create sortable instance
* @param {HTMLElement} el

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save