]> source.dussan.org Git - jquery-ui.git/commitdiff
draggable: fixed 'o is not defined' exception
authorRichard Worth <rdworth@gmail.com>
Fri, 30 Jan 2009 05:17:48 +0000 (05:17 +0000)
committerRichard Worth <rdworth@gmail.com>
Fri, 30 Jan 2009 05:17:48 +0000 (05:17 +0000)
ui/ui.draggable.js

index e8524679b6f3bc4907f87c3083c7f29b2e86eb1b..bfad09ae0729a7b9fbd3c633e33562855610630e 100644 (file)
@@ -592,6 +592,7 @@ $.ui.plugin.add("draggable", "opacity", {
                t.css('opacity', o.opacity);
        },
        stop: function(event, ui) {
+               var o = $(this).data('draggable').options;
                if(o._opacity) $(ui.helper).css('opacity', o._opacity);
        }
 });