dieulot/instantclick — pull request #66 by snpy (2014-04-08 22:29:57+00:00)
Title: Add "dom" event

New "dom" event will be triggered just after HTML gets updated and before
internal "instantanize" function gets called.

This event is useful in at least case (that I've come across).
It's when you don't want to update HTML directly and rather rely on JS.

Example:

```JS
!function($, ic, u) {
var updateDom, hrefPattern;

hrefPattern = /no\/reload/; // change me

updateDom = function() {
$('a:not([data-instant]):not([data-no-instant])').each(function() {
if (!this.href.match(hrefPattern)) {
return;
}

$(this).data('data-instant', '');
});
}

ic.on('dom', updateDom);
ic.init(true);
} (jQuery, InstantClick);
```