guy 7 years ago
parent
commit
bce1c86c05
  1. 4
      bi/core.js
  2. 4
      docs/core.js
  3. 4
      src/core/utils/load.js

4
bi/core.js

@ -9178,12 +9178,12 @@ $.extend(BI, {
must: false must: false
}, options); }, options);
config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path; config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path;
this.$import(config.url, config.type,config.must); this.$import(config.url, config.type, config.must);
}, },
$import: function () { $import: function () {
var _LOADED = {}; // alex:保存加载过的 var _LOADED = {}; // alex:保存加载过的
function loadReady(src, must) { function loadReady(src, must) {
var $scripts = $("head script"); var $scripts = $("head script, body script");
$.each($scripts, function (i, item) { $.each($scripts, function (i, item) {
if (item.src.indexOf(src) != -1) { if (item.src.indexOf(src) != -1) {
_LOADED[src] = true; _LOADED[src] = true;

4
docs/core.js

@ -17625,12 +17625,12 @@ $.extend(BI, {
must: false must: false
}, options); }, options);
config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path; config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path;
this.$import(config.url, config.type,config.must); this.$import(config.url, config.type, config.must);
}, },
$import: function () { $import: function () {
var _LOADED = {}; // alex:保存加载过的 var _LOADED = {}; // alex:保存加载过的
function loadReady(src, must) { function loadReady(src, must) {
var $scripts = $("head script"); var $scripts = $("head script, body script");
$.each($scripts, function (i, item) { $.each($scripts, function (i, item) {
if (item.src.indexOf(src) != -1) { if (item.src.indexOf(src) != -1) {
_LOADED[src] = true; _LOADED[src] = true;

4
src/core/utils/load.js

@ -9,12 +9,12 @@ $.extend(BI, {
must: false must: false
}, options); }, options);
config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path; config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path;
this.$import(config.url, config.type,config.must); this.$import(config.url, config.type, config.must);
}, },
$import: function () { $import: function () {
var _LOADED = {}; // alex:保存加载过的 var _LOADED = {}; // alex:保存加载过的
function loadReady(src, must) { function loadReady(src, must) {
var $scripts = $("head script"); var $scripts = $("head script, body script");
$.each($scripts, function (i, item) { $.each($scripts, function (i, item) {
if (item.src.indexOf(src) != -1) { if (item.src.indexOf(src) != -1) {
_LOADED[src] = true; _LOADED[src] = true;

Loading…
Cancel
Save