i have folowing code: (without compilation everything work fine)
var audio = new Audio("audio.ogg");
goog.events.listen(audio, 'timeupdate', function(e){
ERROR
actual parameter 1 of goog.events.listen does not match formal parameter
>> found : Audio
>> required: (EventTarget|goog.events.Listenable|null)
>> goog.events.listen(this.audio.singing, 'timeupdate', function(e){
my Extern
/**
* @param {string=} src
* @constructor
*/
var Audio = function(src) {};
Audio.prototype.play = function() {};
How can i compile with internal event like this? Thank you
You should certainly try augmenting your extern definition:
Edit:
So it turns out that your problem had been addressed in the Closure Compiler codebase and then that fix was reverted. See the changelog here.
The relevant part of that commit I reproduce below: