diff --git a/WebContent/demo/mock.plugin/casebox/case1_seajs_jquery_preload.html b/WebContent/demo/mock.plugin/casebox/case1_seajs_jquery_preload.html new file mode 100644 index 0000000..517d49e --- /dev/null +++ b/WebContent/demo/mock.plugin/casebox/case1_seajs_jquery_preload.html @@ -0,0 +1,60 @@ + + + + + + + + + +
+
+

+ RAP plugin case1: seajs jquery preload issue. +

+

LOG:

+

+
+ + + + + \ No newline at end of file diff --git a/WebContent/stat/js/util/mock.plugin.js b/WebContent/stat/js/util/mock.plugin.js index 6e7b31c..4ca4bbc 100644 --- a/WebContent/stat/js/util/mock.plugin.js +++ b/WebContent/stat/js/util/mock.plugin.js @@ -227,15 +227,6 @@ } if (window.seajs && window.define && window.define.cmd) { - // 删除已经加载的jquery缓存 - var cache = seajs.cache || {}; - for(var prop in cache) { - prop = prop.toLowerCase(); - if (prop.indexOf('jquery') != -1) { - delete cache[prop]; - } - } - var data = seajs.config().data; data.alias = data.alias || {}; var path = 'http://' + ROOT + '/stat/js/util/jquery-rapped.js';