Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little improvement to avoid overproduction of iframes #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions jquery.jqprint-0.3.js → jquery.jqprint-0.3.1.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// Eros Fratini - eros@recoding.it
// jqprint 0.3
// (+ little improvement by Mauro Vanetti - posta@maurovanetti.info)
//
// jqprint 0.3.1
//
// - 28/10/2015 - avoid overproduction of iframes
// - 19/06/2009 - some new implementations, added Opera support
// - 11/05/2009 - first sketch
//
Expand All @@ -28,7 +31,8 @@
}
else
{
var $iframe = $("<iframe />");
$('#delete-me-please').remove();
var $iframe = $("<iframe id='delete-me-please' />");

if (!opt.debug) { $iframe.css({ position: "absolute", width: "0px", height: "0px", left: "-600px", top: "-600px" }); }

Expand Down Expand Up @@ -72,4 +76,4 @@
jQuery.fn.outer = function() {
return $($('<div></div>').html(this.clone())).html();
}
})(jQuery);
})(jQuery);