Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosn committed Jun 18, 2014
2 parents 8330a21 + 45c6754 commit 2d30e08
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion WebContent/stat/js/util/mock.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,16 @@
}
}

if (window.define && window.define.cmd) {
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';
Expand Down

0 comments on commit 2d30e08

Please sign in to comment.