Skip to content

Instantly share code, notes, and snippets.

View JakubJarabica's full-sized avatar

Jakub Jarabica JakubJarabica

View GitHub Profile
(function($, undefined) {
$.nette.ext('selectiveUnique', {
start: function(xhr, settings) {
if (!settings.uniqueTag || typeof settings.uniqueTag !== 'string')
return;
if (this.xhrs[settings.uniqueTag]) {
this.xhrs[settings.uniqueTag].abort();
}