Skip to content
Put a wiretap on javascript element events
HTML JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
README.md Update README.md
bower.json update lib & rename
index.html
wiretap.js

README.md

wiretap.js

Put a wiretap on javascript element events

Use before adding events using jQuery or pure javascript.

Usage:

new Wiretap({
    add: function() {
        //fire when an event is bound to element
    },
    before: function() {
        //fire just before an event executes, arguments are automatic
    },
    after: function() {
        //fire just after an event executes, arguments are automatic
    }
});

index.html contains a full example.

Something went wrong with that request. Please try again.