munchkin.js - jQuery 1.9 compatibility | Community
Skip to main content
January 22, 2013
Question

munchkin.js - jQuery 1.9 compatibility

  • January 22, 2013
  • 20 replies
  • 2906 views
Hi there,

recently updated my jQuery to 1.9.2, now I see this

Uncaught TypeError: Cannot read property 'version' of undefined
munchkin.js:21

is munchkin.js known to work with jQuery 1.9.x and 1.9.2 specifically?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

20 replies

January 22, 2013
No.  1.9/2.0 killed off a bunch of deprecated elements, browser.version being one of them.  Reference the marketo store of jquery, they will make sure it doesn't update past a breaking point, or just roll back to your own hosted last working version files.  Don't reference the google or jquery hosted most recents.
January 22, 2013
ah thank you, in the process of rolling back to jQuery 1.8.x

would you happen to know when/if an update to be 1.9+ compatible might be expect?
January 22, 2013
No idea.  Just happened to catch a thread yesterday morning regarding this, and I think it was Erik that assured us that the marketo hosted file would remain older version until they were sure nothing would break.
January 23, 2013
We're testing a 1.9 version, but as Craig mentions they really changed the library in that update. I don't have a firm ETA yet, but we were thinking of making a beta available as the first step.

We won't update the Marketo hosted one until Munchkin fully supports the new version.
February 6, 2013
Any updates on this?
April 23, 2013
Hey all,

We just created a beta version of Munchkin that supports 1.9. If you're interested in trying it please email me at erik@marketo.com

-Erik
May 1, 2013
I think it should be made clearer on the Munchkin Page that there is a dependency on Jquery - with reference to supported versions.

I had no idea, and lost a couple of days of tracking data because I missed the error.
May 2, 2013
Is there some way to disable the code programmatically if there is a problem like this?  We are running into this now and this is affecting our end users.  I would rather not have to change the code if there is a problem (i.e. use a try catch clause).
May 2, 2013
Hmm, not that I know of. Although I'm not exactly a Javascript master.

I did send you the beta however.
May 2, 2013
I would also like to request that munchkin.js be updated as soon as possible. We are currently loading the jquery migrate plugin on our site only for the tracking code.