From 2e33179ad78b7d677610c50656f51f4b703034d5 Mon Sep 17 00:00:00 2001 From: Simon Hewitt Date: Tue, 12 Jan 2016 15:16:15 -0800 Subject: [PATCH] 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. --- js/foundation/foundation.reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2