feat(viewer): stronger check for jQuery

Closes #664
This commit is contained in:
Juan Manuel Osorio Gerdts 2017-02-17 18:44:01 +01:00 committed by Philipp Fromme
parent 1cb3a8eedc
commit e16d2f5d02
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ Viewer.prototype.attachTo = function(parentNode) {
this.detach(); this.detach();
// unwrap jQuery if provided // unwrap jQuery if provided
if (parentNode.get) { if (parentNode.get && parentNode.constructor.prototype.jquery) {
parentNode = parentNode.get(0); parentNode = parentNode.get(0);
} }