From: Simon Hewitt Date: Tue, 12 Jan 2016 23:16:15 +0000 (-0800) Subject: Fix reveal for jQuery 2.2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7859%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix reveal for jQuery 2.2 This removes the invalid call to `.on`. It was working before, but a change in jQuery (https://github.com/jquery/jquery/commit/04a29696e5b176ac66401120e433d52425222f0f) changed the return value of `.on` when called with just a string. --- diff --git a/js/foundation/foundation.reveal.js b/js/foundation/foundation.reveal.js index fddcb7b53..4a50349db 100644 --- a/js/foundation/foundation.reveal.js +++ b/js/foundation/foundation.reveal.js @@ -187,7 +187,7 @@ if (e.namespace !== 'fndtn.reveal') return; }); - modal.on('open.fndtn.reveal').trigger('open.fndtn.reveal'); + modal.trigger('open.fndtn.reveal'); if (open_modal.length < 1) {