HoriSun / closure-compiler

Automatically exported from code.google.com/p/closure-compiler
0 stars 0 forks source link

extern for History doesn't have a @constructor root. #1290

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
/externs/html5.js.

The description of the History API starts immediately with 
History.prototype.pushState etc.
Shouldn't it have a root @constructor function to define {History} also?

Regards
/ Fredrik Blomqvist

Original issue reported on code.google.com by fblomqvist@gmail.com on 28 Mar 2014 at 1:45

GoogleCodeExporter commented 9 years ago
The History constructor itself is defined in ie_dom.js (though it's not 
IE-specific -- perhaps it was at the time?) at 
https://code.google.com/p/closure-compiler/source/browse/externs/ie_dom.js#499

This seems to happen pretty often, where things in externs are defined in 
somewhat odd places. But don't worry, it is defined :)

Original comment by tbreisac...@google.com on 28 Mar 2014 at 3:49

GoogleCodeExporter commented 9 years ago
Aha, missed that!
Thanks

Original comment by fblomqvist@gmail.com on 28 Mar 2014 at 3:51