From e16d2f5d02cfb5ce4c985453409086203767513d Mon Sep 17 00:00:00 2001 From: Juan Manuel Osorio Gerdts Date: Fri, 17 Feb 2017 18:44:01 +0100 Subject: [PATCH] feat(viewer): stronger check for jQuery Closes #664 --- lib/Viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Viewer.js b/lib/Viewer.js index a3d916d9..71d207d6 100644 --- a/lib/Viewer.js +++ b/lib/Viewer.js @@ -365,7 +365,7 @@ Viewer.prototype.attachTo = function(parentNode) { this.detach(); // unwrap jQuery if provided - if (parentNode.get) { + if (parentNode.get && parentNode.constructor.prototype.jquery) { parentNode = parentNode.get(0); }