schacon / showoff

moved to puppetlabs/showoff!
2.41k stars 13 forks source link

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

Open salimhb opened 12 years ago

salimhb commented 12 years ago

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) {
    removeResults();
    var _results = $('<div>').addClass('results').html($.print(text, {max_string:500}));
    $('body').append(_results);
    _results.click(removeResults);
};

I suggest that it's renamed to something else.