Skip to content
Browse files

better function printing for safari

  • Loading branch information...
1 parent e8ef338 commit d31f573aaba410281d3d1a6d37c09abebc83464d Nick Kallen committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jquery.print.js
2 lib/jquery.print.js
@@ -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)

0 comments on commit d31f573

Please sign in to comment.
Something went wrong with that request. Please try again.