New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

beanhx

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beanhx

Bean.js externs for Haxe

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Bean.hx: Bean.js externs for Haxe

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

Original project: https://github.com/fat/bean/ 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!");
});

Bean.one(myBtnNode, "click", function (e) {
	trace ("This click will only fire once");
});

Bean.off(myBtnNode);

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!

Keywords

javascript

FAQs

Package last updated on 12 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts