Thursday, August 16th, 2007
Prototype 1.6: The event overhaul, and a whole lot more
This is big. Prototype 1.6 is a major upgrade, and the first RC has been released. There is a large number of updates and my pet favourites are:
- The event system has been cleaned up. It now works the way you would expect, with “this” doing the right thing
- You can observe and fire custom events on the DOM (a la Dojo)
- Thanks to the custom events, DOMContentLoaded is normalized across browsers via: document.observe(”contentloaded”, function() { … })
- AOP-lite: Simple interception and function currying
- Function delay and defer: (function() { $(”form”).fire(”requestSent”) }).defer();
- Ajax.Response: Now you can more easily work with JSON
- DOM Builder
- Template API: “#{last}, #{first}”.interpolate({ first: “Andrew”, last: “Dupont” })
- Improved support for JavaScript 1.6 and WHATWG 1.0 standards
Be sure to take a detailed look at this puppy.












It couldnt come at a better time ^_^
Wow! life just got easier, and my code will get a lot smaller.
Let’s hope Jonathan Snook makes a nice new cheat-sheet.
The release candidate is very stable. Highly recommended upgrade :)
I especially liked how DOM builder works now. Very convenient.
Nice. Looks like pretty much every Prototype API has been upgraded in this release. I like this example from the release log where they show how to implement jQuery’s element collection methods using the new AOP system.
Glad to see PT coming along nicely.
here come the sleepless nights in trying to port existing code to the new release :)
ooo Nice DOM builder. I like.
DOM Builder taken from JS Ext :)
I am really loving the new AOP stuff, as well as the new event modifications. Congrats and a great job to the Prototype team :)
All the additions seem very nice. However, the library is getting bigger and bigger with each release. A nice addition would be an official compressed version that we can use. I am at the point where 100k+ is too much but I do not trust me so much to compress it myself.
Is there already a stable compressed version of 1.6.0 rc0 available? If i use dojo shrinksafe, an error pops up (_3a8 has no properties on line 1 -_-)