Dj-Corps / simplemodal

Automatically exported from code.google.com/p/simplemodal
0 stars 0 forks source link

s.d.overlay.remove undefined #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In 1.4.1 this code around line 689
                setTimeout(function(){
                    // opera work-around
                                        s.d.overlay.remove();

                    // reset the dialog object
                    s.d = {};
                }, 10);

should check

if (s.d.overlay){
   s.d.overlay.remove();
}

Original issue reported on code.google.com by c...@rocketmail.com on 16 Nov 2010 at 6:59

GoogleCodeExporter commented 8 years ago
Thanks for reporting this issue. I'll make sure to add it in the next version.

Original comment by emartin24 on 3 Dec 2010 at 12:33

GoogleCodeExporter commented 8 years ago
Ths makes the error go away.

// opera work-around
if(typeof s.d.overlay != 'undefined') {s.d.overlay.remove();}

Original comment by Laran.Ev...@gmail.com on 26 Jan 2011 at 7:17

GoogleCodeExporter commented 8 years ago
Resolved in 1.4.2

Original comment by emartin24 on 7 Apr 2012 at 4:19