Browse Source

Merge branch 'master' of https://github.com/akholodenko/ratchet into akholodenko-master

pull/231/head
connors 11 years ago
parent
commit
1696f257c1
  1. 13
      dist/ratchet.js

13
dist/ratchet.js vendored

@ -75,9 +75,16 @@
var anchor = findPopovers(e.target);
if (!anchor || !anchor.hash) return;
popover = document.querySelector(anchor.hash);
try{
popover = document.querySelector(anchor.hash);
}
catch (error) {
popover = null;
}
if (popover == null) return;
if (!popover || !popover.classList.contains('popover')) return;
return popover;

Loading…
Cancel
Save