Browse Source

+ master (0.5.2)

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

9
Sortable.js

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

2
Sortable.min.js vendored

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