Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better function printing for safari

  • Loading branch information...
commit d31f573aaba410281d3d1a6d37c09abebc83464d 1 parent e8ef338
Nick Kallen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/jquery.print.js
View
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)
Please sign in to comment.
Something went wrong with that request. Please try again.