requireJS を使用して jquery.jstree.js をロードしても、IE では機能しません。
requireJS を使用して JSTree プラグイン (jquery.jstree.js) をロードしようとすると、次の JS エラーで IE8 で失敗します。
Message: Could not get the type property. Invalid argument.
Line: 109
Char: 463
Code: 0
URI: file:///...../js/requireplugins-jquery-1.4.3.js
他のブラウザー (FF および Chrome) でテストしたところ、問題なく動作しました。また、IE では他の jQuery プラグインでも問題なく動作します。問題が発生するのは jsTree プラグインのみです。
以下のいくつかのコードスニペット
I have a test.html where I load requrejs specifying the data-main attribute.
<script type="text/javascript" data-main="main" src="js/requireplugins-jquery-1.4.3.js"></script>
A main.js where I define all the modules to be loaded and a callback - I have shown
only the jstree module here as that's the only one causing a problem.
main.js:
require(["jquery.jstree"], callBackFunctionToInitialzeTree);