"Uncaught TypeError: Cannot read property 'msie' of undefined"

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

After adding a JIRA Issue Collector to a website, the following exception is thrown when the page is loading:

Uncaught TypeError: Cannot read property 'msie' of undefined
com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js:1

診断

This error is thrown when using jQuery 1.9.0.

原因

This happens because the "$.browser" property was removed in jQuery 1.9.0, and most of the users still use the "$.browser" property in the Issue Collector's code. There is a bug or this issue tracked on  JRA-31576 - Getting issue details... STATUS

回避策

Use jQuery Migrate which allows using removed functions and gives a notice about removed functions (in the console.log).

ソリューション

  • The following code should help to resolve the issue

    navigator.appName == 'Microsoft Internet Explorer'
    

    This will have the same effect as:

    $.browser.msie
    
最終更新日 2016 年 3 月 30 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.