Christo93 / simplemodal

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

Overlay shown on call with empty or missing DOM element #71

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
jquery.simplemodal-1.4.1.js width jQuery 1.5.1

Experienced on any browser.

------------------------------------

$(document).ready(function(){
  $('.doesnoexist').modal();
});

------------------------------------

My current patch :

@line 285 :
if(!data.html()) { return; }

------------------------------------

I don't know if it can mess with other methods (ajax)...

Original issue reported on code.google.com by ludovic....@gmail.com on 28 Jul 2011 at 4:56