Browse Source

Update dist/ratchet.js

popover was returning the following error in my app:

Uncaught Error: SYNTAX_ERR: DOM Exception 12 ratchet.js:50
pull/139/head
Chris Matthieu 12 years ago
parent
commit
119f1f6161
  1. 7
      dist/ratchet.js

7
dist/ratchet.js vendored

@ -47,7 +47,12 @@
if (!anchor || !anchor.hash) return;
popover = document.querySelector(anchor.hash);
try{
popover = document.querySelector(anchor.hash);
}
catch {
popover = {}
}
if (!popover || !popover.classList.contains('popover')) return;

Loading…
Cancel
Save