Open Joncom opened 5 years ago
https://github.com/phoboslab/Impact/blob/6d06c2853294717cb7f078cae54c46996d15151c/lib/impact/debug/maps-panel.js#L49
Probably ought to be:
var head = ig.$new('strong');
I'm not even sure why the original doesn't throw an error, because all ig.$new does is
ig.$new
https://github.com/phoboslab/Impact/blob/6d06c2853294717cb7f078cae54c46996d15151c/lib/impact/impact.js#L110-L111
and new (document.createElement( 'strong' )); throws JavaScript error:
new (document.createElement( 'strong' ));
Uncaught TypeError: document.createElement(...) is not a constructor
https://github.com/phoboslab/Impact/blob/6d06c2853294717cb7f078cae54c46996d15151c/lib/impact/debug/maps-panel.js#L49
Probably ought to be:
I'm not even sure why the original doesn't throw an error, because all
ig.$new
does ishttps://github.com/phoboslab/Impact/blob/6d06c2853294717cb7f078cae54c46996d15151c/lib/impact/impact.js#L110-L111
and
new (document.createElement( 'strong' ));
throws JavaScript error: