RightJS v1.5.4 is out

Rolling out another minor release with fixes and new features.

  • Framesafe type checks in the utility functions
  • Basic events delegation features out of box
  • Server-side build was added to the list of downloads
  • Element#match and Element#parents methods fix
  • Element#subNodes method performance optimization
  • The target elements on the old IE browsers now will be automatically extended
  • Element constructor now supports the short 'on' option, which is the same as 'observe'
  • The olds module loading script fix in case when scripts and the .html file are in the same directory
  • Native Object.keys method reused when available
  • Some more fat was cut off the builds
  • Faster elements processing under IE 6 and 7 browsers

Events Deletation Feature

As I cut off some more fat off the framework I've managed to squeeze in some elements of the events delegation feature into the default build. See the Event.delegate and String#behave methods for the documentation and examples.

As you see the API is pretty much the same as the Behavior plugin, so if all you needed were the String#behave and Behavior.delegate methods, you don't need the plugin anymore, those features are in the core now.

BE WARE: the behaviors plugin currently uses a blunt events binding to every matching element, and it will be reworked soon to use the events delegation feature too. The API won't change, but the principles will.

Server-Side Build

Since this version we are starting to provide the server-side version of RightJS at the downloads page.

It follows the CommonJS principles and ready to be used with NodeJS