aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-08 11:00:47 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-08 11:00:47 +0000
commit593cb1ffeffb981961804b7b1c13adcbf92618c7 (patch)
tree1f16c28fa929d2d50bc143e373c081483beb9f27 /ui/ui.sortable.js
parent8eca969374348c619fe1df66098565d74e2c78f1 (diff)
downloadjquery-ui-593cb1ffeffb981961804b7b1c13adcbf92618c7.tar.gz
jquery-ui-593cb1ffeffb981961804b7b1c13adcbf92618c7.zip
core: cancel checks for type string before it's used
draggable-test: changed cancel: true test: this should cancel on all elements, but simply do nothing, since true is a unsupported value.
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index 84eb0df93..9718dd1bc 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -65,9 +65,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
if(!noPropagation) this.element.triggerHandler(n == "sort" ? n : "sort"+n, [e, this.ui(inst)], this.options[n]);
},
serialize: function(o) {
-
-
-
+
var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
var str = []; o = o || {};
@@ -80,11 +78,13 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
},
toArray: function(attr) {
+
var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
var ret = [];
items.each(function() { ret.push($(this).attr(attr || 'id')); });
return ret;
+
},
/* Be careful with the following core functions */
intersectsWith: function(item) {