AJS 4.5 is out

I have just released a new version of λJS which features a new event system (which boosts performance 1000 times :-)) and a new unified way of passing elements around.

The main reasons I am still using AJS:

  • Very small foot print (around 30kb uncompressed - JQuery, Prototype etc. are around or over 100KB)
  • Very good performance (basically, nothing is really expensive in AJS. The same can't be said with JQuery [xPath implementation in JS...])
  • Forged for DOM creation and DOM manipulation, very nice when building web-applications
  • Makes code readable (when I look at Prototype code I see Java, when I look at JQuery code I see Perl. AJS is somewhere in between)

The new event system is based on Dean Edwards event system - which is a very lightweight implementation of events (JQuery uses same approach).

Other than clean up and some internal rewrites (+ some new functions), it's now possible to do following with most AJS functions:

//Remove elements
removeElement($bytc('a', 'person'), [$('elm1'), $('elm2')])

//Set visibility to hidden on some elements
setVisibility($bytc('a', 'person'), [$('elm1'), $('elm2')], false)

I.e. functions of AJS can accept one element or a list+ of elements.

Some outgoing links:

Announcements · Code · JavaScript 21. Jun 2008
4 comments so far

AJS is used in Plurk, right?=)
I know, some russian people are in Plurk dev team. How can i contact with them (my English is bad=) about Plurk API, client for Plurk, and some other questions?

Amir,
would you please update the drag-n-drop example with the new scripts. I am getting an error when I try to use your new AJS script.

Thanks
Tom

@ognevsky:
You can use the contact form on our page. http://www.plurk.com/contact . We don't currently have an official API.

@Tom:
Will do, thanks.

that's cool!!I'm download and use.
thanks!!

Post a comment
Commenting on this post has expired.
© 2000-2009 amix. Powered by Skeletonz.