Open yurks opened 10 years ago
Use .on not delegate it's obsolete. But you should specify the parent and the child you are trying to bind an event
Description updated, code has mistake, thank you. And if we take care of jquery < 1.7 we should use .delegate(), as it not deprecated and just an alias for .on() in jquery >= 1.7
sounds good
instead $('.' + s.o.closeClass).bind('click.simplemodal', ... better use $(document_or_body).delegate('click.simplemodal', '.' + s.o.closeClass, ... as click button could appear a bit later after .bindEvents() called