Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3087

Show
Ignore:
Timestamp:
11/18/05 18:06:55 (3 years ago)
Author:
madrobby
Message:

script.aculo.us: Make Droppables.remove accept DOM IDs in addition to elements, unit test file for drag and drop

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/scriptaculous/CHANGELOG

    r3085 r3087  
    11*SVN* 
     2 
     3* Make Droppables.remove accept DOM IDs in addition to elements 
     4 
     5* Added some unit tests for drag and drop 
    26 
    37* Update lib/prototype.js to Prototype 1.4.0_rc3 
  • spinoffs/scriptaculous/Rakefile

    r2948 r3087  
    6666  t.run("/test/unit/builder_test.html") 
    6767  t.run("/test/unit/element_test.html") 
     68  t.run("/test/unit/dragdrop_test.html") 
    6869  t.run("/test/unit/sortable_test.html") 
    6970  t.run("/test/unit/position_clone_test.html") 
  • spinoffs/scriptaculous/src/dragdrop.js

    r3038 r3087  
    99 
    1010  remove: function(element) { 
    11     this.drops = this.drops.reject(function(d) { return d.element==element }); 
     11    this.drops = this.drops.reject(function(d) { return d.element==$(element) }); 
    1212  }, 
    1313 
  • spinoffs/scriptaculous/test/unit/index.html

    r2948 r3087  
    5050<h2>dragdrop.js</h2> 
    5151<ul> 
     52  <li><a href="dragdrop_test.html" target="test">Drag &amp; Drop test</a></li> 
    5253  <li><a href="sortable_test.html" target="test">Sortable test</a></li> 
    5354</ul>