]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix reveal for jQuery 2.2 7859/head
authorSimon Hewitt <si@sjhewitt.co.uk>
Tue, 12 Jan 2016 23:16:15 +0000 (15:16 -0800)
committerSimon Hewitt <si@sjhewitt.co.uk>
Tue, 12 Jan 2016 23:16:15 +0000 (15:16 -0800)
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

index fddcb7b53505f2e069317d37315295b41021f512..4a50349db24f6b0250119213d26a5bfb67eea5be 100644 (file)
           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) {