lmc-eu / ngx-library

[INACTIVE] Extension library for AngularJS projects
MIT License
72 stars 20 forks source link

Bug in IE 8 in ngx.smap module #20

Closed rokerkony closed 11 years ago

rokerkony commented 11 years ago

window.console is sometimes null or undefined

file: ngx-library/src/modules/smap/smap.js

hotfix:

if (window.console) {
    window.console.DEBUG = true;
}
josefzamrzla commented 11 years ago

Well, IE8 is a bug itself :-D This is not a bug, IE8 doesn't have any console. I would guess some fallback for non-modern-browsers, like: if (!window.console) { window.console = { log: function () {}, DEBUG: true }; }