diff --git a/jquery.reveal.js b/jquery.reveal.js index 53ba3d9..0752fbc 100644 --- a/jquery.reveal.js +++ b/jquery.reveal.js @@ -8,7 +8,7 @@ (function ($) { - $('a[data-reveal-id]').live('click', function (event) { + $(document).on('click', 'a[data-reveal-id]', function(event) { event.preventDefault(); var modalLocation = $(this).attr('data-reveal-id'); $('#' + modalLocation).reveal($(this).data());