davebalmer / jo

Jo (0.5.0) is a thin (~16K) candy shell for making HTML5 apps. Jo works with: PhoneGap, Chrome, Safari, Opera, FireFox, iOS, Android, BlackBerry 10, Tizen, & Windows Phone 8+. Features include skinnable UI widgets, a clean event model and a light data layer.
MIT License
1.2k stars 180 forks source link

Creating console.log replaces the console object #46

Closed bemjb closed 12 years ago

bemjb commented 12 years ago

I was looking at the jo source, and it seemed to me that the code for creating the dummy console.log wasn't safe in the case of a broken environment that has a console object, but doesn't have a log property. In that case, it would replace the entire console object, which probably isn't the desired outcome.

davebalmer commented 12 years ago

Good point, thanks!