#15285 closed defect (fixed)
uploader killed when link clicked
Reported by: | haysmark | Owned by: | Mike Wilcox |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9 |
Component: | DojoX Uploader | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
See line 94 of dojox/embed/Flash.js. It appears the code suffers from the old issue where a user clicks a download link and addOnUnload gets unexpectedly called. The solution is to use addOnWindowUnload.
dojo.addOnUnload(function(){ // this method will be call when click a href link in html page. there should change to dojo.addOnWindowUnload. var dummy = function(){}; var objs = dojo.query("object"). reverse(). style("display", "none"). forEach(function(i){ for(var p in i){ if((p != "FlashVars") && dojo.isFunction(i[p])){ try{ i[p] = dummy; }catch(e){} } } }); });
Change History (2)
comment:1 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 8 years ago by
Milestone: | tbd → 1.9 |
---|
I did not see the problem, but implemented your suggestion regardless.
Note: See
TracTickets for help on using
tickets.
In [30330]: