fix #890 test if console is available before writing to console.log

pull/913/head
Wikinaut 2012-08-01 14:34:03 +02:00
parent a2bf577393
commit 11e601fbcd
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
['insertorder', 'first']
].concat(
_.map(state.lineAttributes,function(value,key){
console.log([key, value])
if (window.console) console.log([key, value])
return [key, value];
})
);