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
© Amir Salihefendic. Powered by Skeletonz.