Skip to content

Instantly share code, notes, and snippets.

View rostislavzz's full-sized avatar
🕊️

Rostislav Shikhov rostislavzz

🕊️
View GitHub Profile
@magnetikonline
magnetikonline / README.md
Last active February 18, 2025 08:11
Setting Nginx FastCGI response buffer sizes.
@zakirt
zakirt / Event-Module.markdown
Last active July 16, 2018 10:26
Event - JavaScript module handling addition/removal of multiple events

JavaScript Event Handling Module

A JavaScript module allowing addition and removal of multiple events and callback handlers. Its most useful feature is the ability to keep track of attached event handlers. Multiple event handlers can be attached and removed to/from a specific event. The module allows removal of all event listeners at the same time for a specific event, or all listeners for all events, if the user so desires.

  • Can be used with collections, or with a single DOM object.
  • Works on older browsers.

This module was inspired by this answer at Stack Overflow: http://stackoverflow.com/a/4386514

A simple example using Event module can be seen here: http://codepen.io/zakirt/pen/tjkEg