console.log to clone jQuery objects before appending them. #82

Merged
leolannenmaki merged 2 commits from master into master 2011-11-21 18:56:49 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 115e2eff8b - Show all commits

View File

@ -2,7 +2,7 @@ if window.JHW
window.console = window.console =
log: (data) -> log: (data) ->
if typeof(jQuery) != 'undefined' && data instanceof jQuery if typeof(jQuery) != 'undefined' && data instanceof jQuery
JHW.log(style_html($("<div />").append(data).html(), { indent_size: 2 })) JHW.log(style_html($("<div />").append(data.clone()).html(), { indent_size: 2 }))
else else
useJsDump = true useJsDump = true