<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/functional/sortable_nested_test.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+* 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]
+
 * 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]
 
 * 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]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -608,7 +608,8 @@ var Sortable = {
   },
   
   destroy: function(element){
-    var s = Sortable.options(element);
+    element = $(element);
+    var s = Sortable.sortables[element.id];
     
     if(s) {
       Draggables.removeObserver(s.element);</diff>
      <filename>src/dragdrop.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>efb38b665f9e5c48a5179f249f926e96c18ddee7</id>
    </parent>
  </parents>
  <author>
    <name>Thomas Fuchs</name>
    <email>thomas@fesch.at</email>
  </author>
  <url>http://github.com/madrobby/scriptaculous/commit/a714120f4f2c477640008f04688d391cf85bf9a4</url>
  <id>a714120f4f2c477640008f04688d391cf85bf9a4</id>
  <committed-date>2008-07-25T05:44:00-07:00</committed-date>
  <authored-date>2008-07-25T05:44:00-07:00</authored-date>
  <message>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]</message>
  <tree>3b1ebe00fe7c01cd68521bb43c61d7a879a69929</tree>
  <committer>
    <name>Thomas Fuchs</name>
    <email>thomas@fesch.at</email>
  </committer>
</commit>
