Skip to main content
Oct 24, 2013 3:30 PM UTC
Delivered

Munchkin is incompatible with jQuery v1.10

Hey guys,

Munchkin is now incompatible with the latest jQuery version. It mistakes it for an old jQuery and then loads its own version from Marketo, which is actually older than the latest jQuery.

The Munchkin script seems to assume that the newest jQuery, version 1.10, is the same as "1.1". 

The offending regular expression in Munchkin is:

/^([0-9])\.([0-9])\.?([0-9])?\.?([0-9])?$/

Which assumes that each division in the jQuery version string is a single digit. jQuery 1.10 breaks this assumption.

The correct regular expression to use is:

/^([0-9]+)\.([0-9]+)\.?([0-9]+)?\.?([0-9]+)?$/

Any chance you guys can fix this regex and post a new version?

Cheers!

4 replies

Oct 24, 2013 4:18 PM UTC
There are actually other deeper issues here (tracking in 1.9 doesn't work with the default Munchkin either), but we do have a beta version of Munchkin which doesn't use jQuery at all. It works just like the old one, except it is live at a different URL: http://munchkin.marketo.net/munchkin-beta.js (Just modify your munchkin snippet to point to this URL)
Translate
Aug 20, 2014 4:51 PM UTC
The beta version is now live, so this is automatic moving forward.
Translate
Apr 11, 2015 1:30 PM UTC
Is the beta still needed or has munchkin.js been updated to not use jQuery?
Translate
Feb 7, 2020 6:00 AM UTC
No text available
Translate