Externs to the BeanJS lightweight event library for Javascript.

To install, run:

haxelib install beanhx 0.11.2 

See using Haxelib in Haxelib documentation for more information.

Bean.hx: Bean.js externs for Haxe

Providing light-weight, cross browser event management for the DOM.

Original project: thanks to Jacob Thornton.

This extern provides a light-weight implementation of cross browser events in Haxe. It is super light weight (4.1kb gzipped) and works reliably cross platform. The externs should support mostly the same usage as the original, but with a capital 'B':

Bean.on(js.Lib.document.body, "click", function (e) {
	trace ("The body was clicked!");
});, "click", function (e) {
	trace ("This click will only fire once");

Bean.trigger(myBtnNode, "click");

etc. For more usage options (including delegates etc) see the original README. If anyone feels like updating this README to flesh out the examples please do!

3 years ago

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser!

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github