]> source.dussan.org Git - jquery-ui.git/commitdiff
draggable: since revert no longer checks for numbers, introduced a revertDuration...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Fri, 25 Jul 2008 08:53:42 +0000 (08:53 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Fri, 25 Jul 2008 08:53:42 +0000 (08:53 +0000)
ui/ui.draggable.js

index 3ee2a46a66ad0435e2aac41fa89b2a78df604fe8..80024a4d657dbbabc45121e7905182dea2557837 100644 (file)
@@ -219,7 +219,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
                
                if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true) {
                        var self = this;
-                       $(this.helper).animate(this.originalPosition, parseInt(this.options.revert, 10) || 500, function() {
+                       $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10) || 500, function() {
                                self.propagate("stop", e);
                                self.clear();
                        });