Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit ec9c465

Browse files
committed
Merge pull request #962 from matthendrix/master
Fix "parent" option
2 parents 9102574 + 619449b commit ec9c465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/jquery.fancybox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@
17191719

17201720
parent = F.coming ? F.coming.parent : opts.parent;
17211721

1722-
this.overlay = $('<div class="fancybox-overlay"></div>').appendTo( parent && parent.lenth ? parent : 'body' );
1722+
this.overlay = $('<div class="fancybox-overlay"></div>').appendTo( parent && parent.length ? parent : 'body' );
17231723
this.fixed = false;
17241724

17251725
if (opts.fixed && F.defaults.fixed) {

0 commit comments

Comments
 (0)