public
Description: script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
Homepage: http://script.aculo.us/
Clone URL: git://github.com/madrobby/scriptaculous.git
Click here to lend your support to: scriptaculous and make a donation at www.pledgie.com !
Fix a bug in Sortable.destroy to make sure it's called on the referenced 
Sortable only, which allows for the correct intialization of nested Sortables. 
Closes Trac #8615.  [Leon Chevalier]
madrobby (author)
Fri Jul 25 05:44:00 -0700 2008
commit  a714120f4f2c477640008f04688d391cf85bf9a4
tree    3b1ebe00fe7c01cd68521bb43c61d7a879a69929
parent  efb38b665f9e5c48a5179f249f926e96c18ddee7
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Fix a bug in Sortable.destroy to make sure it's called on the referenced Sortable only, which allows for the correct intialization of nested Sortables. Closes Trac #8615.  [Leon Chevalier]
0
+
0
 * Change Effect.Base#render not to use eval(), so certain JavaScript runtime environments (like Adobe AIR) that do not support eval() work.  [King Maxemilian, John-David Dalton]
0
 
0
 * Fixed a calculation error in Effect.Transitions.pulse that could lead to flickering, add easing and change it to be a normal 0 to 1 transition that can be used with any effects; Effect.Pulsate now uses its own implementation.  [Thomas Fuchs]
...
608
609
610
611
 
 
612
613
614
...
608
609
610
 
611
612
613
614
615
0
@@ -608,7 +608,8 @@ var Sortable = {
0
   },
0
   
0
   destroy: function(element){
0
-    var s = Sortable.options(element);
0
+    element = $(element);
0
+    var s = Sortable.sortables[element.id];
0
     
0
     if(s) {
0
       Draggables.removeObserver(s.element);

Comments