r3521 committed - Update sortable for new widget factory.
Revision: 3521
Author: scott.gonzalez
Date: Tue Dec 22 20:05:37 2009
Log: Update sortable for new widget factory.
http://code.google.com/p/jquery-ui/source/detail?r=3521
Modified:
/branches/dev/ui/jquery.ui.sortable.js
=======================================
--- /branches/dev/ui/jquery.ui.sortable.js Tue Dec 22 19:37:18 2009
+++ /branches/dev/ui/jquery.ui.sortable.js Tue Dec 22 20:05:37 2009
@@ -15,6 +15,30 @@
(function($) {
$.widget("ui.sortable", $.ui.mouse, {
+ options: {
+ appendTo: "parent",
+ axis: false,
+ connectWith: false,
+ containment: false,
+ cursor: 'auto',
+ cursorAt: false,
+ dropOnEmpty: true,
+ forcePlaceholderSize: false,
+ forceHelperSize: false,
+ grid: false,
+ handle: false,
+ helper: "original",
+ items: '> *',
+ opacity: false,
+ placeholder: false,
+ revert: false,
+ scroll: true,
+ scrollSensitivity: 20,
+ scrollSpeed: 20,
+ scope: "default",
+ tolerance: "intersect",
+ zIndex: 1000
+ },
_init: function() {
var o = this.options;
@@ -1022,31 +1046,7 @@
$.extend($.ui.sortable, {
version: "@VERSION",
- eventPrefix: "sort",
- defaults: $.extend({}, $.ui.mouse.defaults, {
- appendTo: "parent",
- axis: false,
- connectWith: false,
- containment: false,
- cursor: 'auto',
- cursorAt: false,
- dropOnEmpty: true,
- forcePlaceholderSize: false,
- forceHelperSize: false,
- grid: false,
- handle: false,
- helper: "original",
- items: '> *',
- opacity: false,
- placeholder: false,
- revert: false,
- scroll: true,
- scrollSensitivity: 20,
- scrollSpeed: 20,
- scope: "default",
- tolerance: "intersect",
- zIndex: 1000
- })
+ eventPrefix: "sort"
});
})(jQuery);
--