Skip to content

Commit

Permalink
fixes #12090, fix error delegation of very old dojox/av/FLAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
dylans committed Sep 13, 2015
1 parent fbd5c21 commit b721c47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions av/FLAudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ return dojo.declare("dojox.av.FLAudio", null, {
this._sub("mediaMeta", "onID3");

this._flashObject = new dojox.embed.Flash(args, this.domNode);
this._flashObject.onError = function(err){
console.warn("Flash Error:", err);
};
this._flashObject.onError = dojo.hitch(this, this.onError);
this._flashObject.onLoad = dojo.hitch(this, function(mov){
this.flashMedia = mov;
this.isPlaying = this.autoPlay;
Expand Down

0 comments on commit b721c47

Please sign in to comment.