Skip to content
Browse files

jQuery.print: include initial object in seen array to prevent unneces…

…sary recursion
  • Loading branch information...
1 parent 044d362 commit 3d0c2fcf74b636c131d4eb05518c4b67ec3bf15b @tmm1 tmm1 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jquery.print.js
View
2 lib/jquery.print.js
@@ -34,7 +34,7 @@
}
function print_object(obj, opts) {
- var seen = opts.seen || [];
+ var seen = opts.seen || [ obj ];
var result = [], key, value;
for (var k in obj) {

0 comments on commit 3d0c2fc

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