Open
Description
what is the best practice to automatically init all a.ajax
links even those dynamically loaded?
should I write custom init function, sth like
$.nette.ext('init', {
load: function (rh) {
$('body').off('click.nette', this.linkSelector, rh).on('click.nette', this.linkSelector, rh);
// ...
}
}
or manually call $.nette.load()
or sth else?