Munchkin is incompatible with jQuery v1.10 | Community
Skip to main content
October 24, 2013
Delivered

Munchkin is incompatible with jQuery v1.10

  • October 24, 2013
  • 4 replies
  • 1452 views
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

New Participant
February 7, 2020
No text available
April 11, 2015
Is the beta still needed or has munchkin.js been updated to not use jQuery?
August 20, 2014
The beta version is now live, so this is automatic moving forward.
October 24, 2013
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)