window.print() is overridden by custom showoff function #172

salimhb opened this Issue Mar 7, 2012 · 0 comments


None yet

1 participant

salimhb commented Mar 7, 2012

This code in showoff.js override the default behavior of the window.print() function which is supposed to bring up the browser's print dialog.

var print = function(text) {
    var _results = $('<div>').addClass('results').html($.print(text, {max_string:500}));

I suggest that it's renamed to something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment