How to use the skatejs.emit function in skatejs

To help you get started, we’ve selected a few skatejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skatejs / skatejs / site / fills / history.ts View on Github external
window.history.pushState = function(...args) {
  oldPushState.call(this, ...args);
  emit(window, 'pushstate');
};
window.history.replaceState = function(...args) {
github skatejs / skatejs / site / fills / history.ts View on Github external
window.history.replaceState = function(...args) {
  oldReplaceState.call(this, ...args);
  emit(window, 'replacestate');
};