Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Releases for Listen


Listen 1.0.3

1.0.3
[Feature]
- Added an exprimental option, Indexer.fn.cache() and $.listen.cache( true/false ).
- Added support for comma separated selectors
[Optimization]
- Got more obsessive with cleanup to avoid memory leaks.

Listen 1.0.2

1.0.2
[Feature]
- If the handlers return false, e.preventDefault() and e.stopPropagation() is called.
- Stopping the propagation also stops forced bubbling.

Listen 1.0.1-stable

1.0.1
[Fix]
- If the indexer was set to bubble, it was bubbling up to the document, instead of its listener.

Listen 1.0.0

Requires jQuery +1.2.3

1.0.0
[Feature]
- Added Jorn's approach of focusin/focusout. You can now safely listen for blur and focus events.
- Added $.fn.indexer( event_name ) to get access to the indexer of the first matched element.
- $.listen.fixes is a hash that maps event/fixedEvent. If you add a fix at $.event.special, add it to this hash and it will work automatically.
- It's possible to set the indexers to be bubbling like this: $(..).indexer( ... ).bubbles = true;
- Added support for multiple events separated with spaces.
[Optimization]
- Reduced the code size, this release (with all its features) is smaller than the previous one.
- Added many optimizations for minified code size.
- Improved the cleaning done on window.onload to avoid memory leaks.
[Change]
- $.listen is not used for stopping/restarting the indexers, use $.fn.indexer( ... ).(start|stop)() instead.
- Changed the licensing from GPL to GPL+MIT.
[Fix]

Listen 0.8.2-beta

-Modified the examples

Listen 0.8.1-beta

- Added a readme, and fixed compatibility.

Listen 0.8.0-beta

-No ID is needed (or setted) for the listeners, jQuery.data is used instead.
-The order of the parameters, was changed for simpler use.
-Listeners can be stopped and restarted.
-The cleanup on the unload event was wrong.
-The code was slightly simplified.

The compatibility is wrong. It's compatible with jQuery 1.2.x.

Listen 0.5.0-beta

First release, selectors support is low and will be, likely, increased in further versions.
I consider this 4 options, the most useful and I believe they are enough for many cases.
The possible selectors must be in one of these ways: "#id", "tagname", ".class", or "tagname.class"

Events that don't bubble (like focus and blur), normally, can't be handled using this technique.
To handle custom events (and focus, blur, etc) check "http://jquery.com/plugins/project/Bubble"

NOTE: A second example is included, using the regular binding, this way this plugin can be compared.