diff --git a/jQuery.print.js b/jQuery.print.js index bed062c..0f2ff80 100644 --- a/jQuery.print.js +++ b/jQuery.print.js @@ -36,7 +36,7 @@ frameWindow.print(); } frameWindow.close(); - deferred.resolve(); + def.resolve(); }, 250); } catch (err) { def.reject(err); @@ -192,7 +192,7 @@ }) .fail(function () { // Use the pop-up method if iframe fails for some reason - console.error("Failed to print from iframe", e.stack, e.message); + console.error("Failed to print from iframe"); printContentInNewWindow(content); }) .always(function () { @@ -227,4 +227,4 @@ } return this; }; -})(jQuery); \ No newline at end of file +})(jQuery);