Skip to content

jou/jquery.tap.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Eavesdrop on jQuery (works like Ruby's Object#tap).

Example:

Want to know what elements this affects?

$('.foo').add('.bar').hide();

Tap into it!:

$('.foo').add('.bar').tap(function() {
    console.log(this);
}).hide();

About

Eavesdrop on jQuery à la Ruby's Object#tap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published