Browse Source

#97: fixed filter option

pull/101/head 0.5.2
RubaXa 10 years ago
parent
commit
4e797dacd1
  1. 10
      Sortable.js
  2. 4
      Sortable.min.js
  3. 2
      bower.json
  4. 2
      component.json
  5. 2
      package.json

10
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) {
@ -680,7 +682,7 @@
}; };
Sortable.version = '0.5.1'; Sortable.version = '0.5.2';
// Export // Export

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.5.1", "version": "0.5.2",
"homepage": "http://rubaxa.github.io/Sortable/", "homepage": "http://rubaxa.github.io/Sortable/",
"authors": [ "authors": [
"RubaXa <ibnRubaXa@gmail.com>" "RubaXa <ibnRubaXa@gmail.com>"

2
component.json

@ -1,7 +1,7 @@
{ {
"name": "Sortable", "name": "Sortable",
"main": "Sortable.js", "main": "Sortable.js",
"version": "0.5.1", "version": "0.5.2",
"homepage": "http://rubaxa.github.io/Sortable/", "homepage": "http://rubaxa.github.io/Sortable/",
"repo": "RubaXa/Sortable", "repo": "RubaXa/Sortable",
"authors": [ "authors": [

2
package.json

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

Loading…
Cancel
Save