From 119f1f61613d8f8cf577656c6b4b85c86a312dfb Mon Sep 17 00:00:00 2001 From: Chris Matthieu Date: Tue, 8 Jan 2013 14:48:54 -0700 Subject: [PATCH] Update dist/ratchet.js popover was returning the following error in my app: Uncaught Error: SYNTAX_ERR: DOM Exception 12 ratchet.js:50 --- dist/ratchet.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/ratchet.js b/dist/ratchet.js index 515392d..e1d52f9 100644 --- a/dist/ratchet.js +++ b/dist/ratchet.js @@ -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;