Skip to content

Commit

Permalink
better function printing for safari
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Kallen committed May 12, 2008
1 parent e8ef338 commit d31f573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jquery.print.js
Expand Up @@ -75,7 +75,7 @@
else if (typeof obj == 'string')
return print_string(obj, opts);
else if ($.isFunction(obj))
return obj.toString().match(/^([^\{]*)\s{/)[1];
return obj.toString().match(/^([^)]*\))/)[1];
else if (obj instanceof Array)
return print_array(obj, opts);
else if (obj instanceof HTMLElement)
Expand Down

0 comments on commit d31f573

Please sign in to comment.