After adding a Jira Issue Collector to one of my sites, I get this exception during page load:
Uncaught TypeError: Cannot read property 'msie' of undefined
com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js:1
I'm guessing this is an IssueCollector problem, but anyone know the cause?
I am using jQuery 1.9.0. This the plugin's Javascript is relying on the long-deprecated jQuery.browser property, which was removed in jQuery 1.9.0.
See http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed
Example of offending code:
if($.browser.msie&&(ATL_JQ.isQuirksMode()||$.browser.version<9))
The Issue Collector needs to be updated to work with jQuery 1.9. Vote for JRA-31576 if you so desire.
So, you have two options to get rid of this exception:
Updated to reference Pietro's documented workaround and reference JRA-31576 so you can vote for a non-workaround solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anson,
The problem is that you have updated JQuery and $.browser was [removed in ver 1.9|http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed]. To solve this you have two options:
navigator.appName == 'Microsoft Internet Explorer'
This will have the same effect as:
$.browser.msie
Cheers,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pietro,
when you plan to fix this bug and update collector?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pietro has since documented this workaround and referenced JRA-31576, so you can vote and watch the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.