On Tue, Aug 2, 2011 at 2:18 PM, Tab Atkins Jr. <[email protected]> wrote:
> MooTools is basically identical to Prototype, except that you can
> additionally set listeners on the element during creation by using a
> magical "events" property in the attribute bag, which takes an object
> of event names and functions. This would be nice to look into adding.
>
Is this much better than just saying eg. Element.create("a", {href: "
http://link <http://google.com/>", onclick: function(e) { ... } }, "link"}?
--
Glenn Maynard