Skip to content

Instantly share code, notes, and snippets.

@jineeshjohn
Created December 10, 2013 09:26
Show Gist options
  • Save jineeshjohn/7887948 to your computer and use it in GitHub Desktop.
Save jineeshjohn/7887948 to your computer and use it in GitHub Desktop.
Dom object to string, helps to debug in firebug
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