Thomas Fuchs
Hi, I'm Thomas Fuchs. I'm the author of Zepto.js, of script.aculo.us, and I'm a Ruby on Rails core alumnus. With Amy Hoy I'm building cheerful software, like Noko Time Tracking and Every Time Zone and write books like Retinafy.me.
   Want me to speak at your conference? Contact me!

script.aculo.us 1.6.4

September 6th, 2006

script.aculo.us 1.6.4, which marks the inclusion of the new release candidate of Prototype 1.5, is out now.

(For those of you missing the 1.6.3 version: that version was out yesterday but had a issue with IE that is now fixed in 1.6.4)

This release comes with the brand-new Prototype V1.5.0_rc1 version, adds several new features and options to drag and drop, features a whole new (experimental) way of doing testing, and adds some other goodies here and there. Also, thanks to the contributors for identifying and squishing bugs!

So—what’s new & cool?

  • Merge assertElementsMatch and assertElementMatches from Prototype’s
    [4986] unittest.js [Sam Stephenson]
  • Add assertRespondsTo and shouldRespondTo assertions

      // object
      var testObj = {
        isNice: function() { }
      }

      // test
      assertRespondsTo('isNice', testObj);
  • Make Sortable.serialize handle DOM IDs like “some_element_1” correctly, fixes #5324
  • Add support for onStart, onDrag and onEnd events directly on Draggables (invoked from the Draggables.notify), fixes #4747 [thx scriptkitchen]

      new Draggable('some_id',{
        onStart:function(){ /* ... */ },
        onDrag:function(){ /* ... */ },
        onEnd:function(){ /* ... */ }
      });
  • Add autoSelect option to Autocompleters to auto select an entry if only one is returned, fixes #5183 [thx cassiano dandrea]
  • Added delay option to Draggables and Sortables, see test/functional/dragdrop_delay_test.html for usage, implements #3325 [thx lsimon, tomg]
  • Add version and timestamp to indvidual library files for easier identification (the files are preprocessed by the Rake fresh_scriptaculous task), fixes #3015 [thx Tobie]
  • Add assertIndentical and assertNotIdentical unit test assertions, which test for equality and common type, fixes #5822 [thx glazedginger]
  • Add integration test for Ajax autocompleter for results with no linebreaks, #4149
  • Added a custom exception to all base effects when used on non-
    existing DOM elements, added a assertRaise method to unit tests
  • Add element shortcuts to Builder that can be activated by calling Builder.dump() (see the unit test), fixes #4260 [thx napalm]

      Builder.dump();
      var element = DIV({id:'ghosttrain'},[
         DIV({style:'font-size: 11px; font-weight: bold;'},[
           H1('Ghost Train'),
           "testtext", 2, 3, 4,
           UL([
             LI({onclick:'alert('test')'},'click me')
           ]),
         ]),
       ]);

  • Make Effect.Puff work correctly for floating elements, fixes #3777
    [thx michael hartl]
  • Fix selection of correct option in SELECT element generated by
    InPlaceCollectionEditor for indexed option arrays, fixes #4789 [thx
    steve]
  • Fix an issue with redrawing ghosted draggables that are inside a
    scrolled container, fixes #3860 [thx gkupps, tsukue]
  • Fix autoscrolling inside scrollable containers when window is
    scrolled too, fixes #5200 [thx wseitz]
  • Fix autoscrolling when dragging an element unto a scrollable
    container, fixes #5017 [thx tomg]
  • Fix a condition where overriding the endeffect on Draggables without
    overriding the starteffect too leads to a Javascript error [thx
    Javier Martinez]
  • Fix a possible error with the drag/drop logic (affects the solution
    to #4706)
  • Fix various issues with IE detection and Opera, and setOpacity, fixes
    #3886, #5973
  • Remove revert cache code obsoleted by #4706, fixes #3436 (again) [thx
    tomg]

As always, the required 1.5.0_rc1 version of Prototype is included with the download.

Big thanks to the contributors!