Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

jQuery.print: add support for true/false; use jQuery.isFunction

  • Loading branch information...
commit 8ea585e1fe7b93f269a33783bc79aa1e9f215b2a 1 parent 49c052a
@tmm1 tmm1 authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/jquery.print.js
View
6 lib/jquery.print.js
@@ -3,11 +3,13 @@
if (typeof obj == 'undefined') {
return "undefined"
+ } else if (typeof obj == 'boolean') {
+ return obj.toString()
+
} else if (!obj) {
return "null"
- // XXX in firefox, (function(){}) instanceof Function # => false
- } else if (obj instanceof Function || typeof obj == "function") {
+ } else if ($.isFunction(obj)) {
return obj.toString().match(/^([^\{]*)\s{/)[1];
} else if (obj instanceof Array) {
Please sign in to comment.
Something went wrong with that request. Please try again.