Munchkin is incompatible with jQuery v1.10

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 Comments
Anonymous
Not applicable
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)
Anonymous
Not applicable
The beta version is now live, so this is automatic moving forward.
Anonymous
Not applicable
Is the beta still needed or has munchkin.js been updated to not use jQuery?
kh-lschutte
Community Manager
Status changed to: In Production