@pageworks/pjax
Version:
Turns any website into a SPA using Fetch and link prefetching.
14 lines • 517 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var link_events_1 = require("../events/link-events");
exports.default = (function (el, pjax) {
if (el.getAttribute('href')) {
link_events_1.default(el, pjax);
}
else {
if (pjax.options.debug) {
console.log('%c[Pjax] ' + ("%c" + el + " is missing a href attribute, Pjax couldn't assign the event listener"), 'color:#f3ff35', 'color:#eee');
}
}
});
//# sourceMappingURL=check-element.js.map