Browse Source

Update push.js

added PUSH function to global scope so it can be triggered from JS

PUSH({
  url: 'foo.html',
  transition: 'slide-in'
});
pull/176/head
Zac Witte 12 years ago
parent
commit
9490c31c55
  1. 1
      lib/js/push.js

1
lib/js/push.js

@ -414,5 +414,6 @@
window.addEventListener('touchend', touchend); window.addEventListener('touchend', touchend);
window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); }); window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); });
window.addEventListener('popstate', popstate); window.addEventListener('popstate', popstate);
window.PUSH = PUSH;
}(); }();

Loading…
Cancel
Save