Ticket #1161 (closed defect: fixed)
permission error from ColorPicker.js
| Reported by: | guest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.95 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
We reference window.opener on load of this script. In some cases, the opener is not accessible. Putting a try/catch around this block fixes the issue. Can this make it into 0.95? Thanks.
try {
if(window.opener&&window.opener.Xinha){
var openerColorPicker=window.opener.Xinha.colorPicker; Xinha._addEvent(window,"unload",function(){
Xinha.colorPicker=openerColorPicker;
});
}
} catch (e) {}
kngan@…
Change History
Note: See
TracTickets for help on using
tickets.
