Created
December 10, 2013 09:26
-
-
Save jineeshjohn/7887948 to your computer and use it in GitHub Desktop.
Dom object to string, helps to debug in firebug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var seen = [] | |
JSON.stringify(components[0], function(key, val) { | |
if (typeof val == "object") { | |
if (seen.indexOf(val) >= 0) | |
return | |
seen.push(val) | |
} | |
return val | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment