|
|
@ -970,7 +970,6 @@ define([
|
|
|
|
var getApi = function (cb) {
|
|
|
|
var getApi = function (cb) {
|
|
|
|
return function () {
|
|
|
|
return function () {
|
|
|
|
require(['/api/broadcast?'+ (+new Date())], function (Broadcast) {
|
|
|
|
require(['/api/broadcast?'+ (+new Date())], function (Broadcast) {
|
|
|
|
// XXX require.s.contexts._ can be used to erase old loaded objects
|
|
|
|
|
|
|
|
cb(Broadcast);
|
|
|
|
cb(Broadcast);
|
|
|
|
setTimeout(function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -978,7 +977,6 @@ define([
|
|
|
|
var defined = ctx.defined;
|
|
|
|
var defined = ctx.defined;
|
|
|
|
Object.keys(defined).forEach(function (href) {
|
|
|
|
Object.keys(defined).forEach(function (href) {
|
|
|
|
if (/^\/api\/broadcast\?[0-9]{13}/.test(href)) {
|
|
|
|
if (/^\/api\/broadcast\?[0-9]{13}/.test(href)) {
|
|
|
|
console.error(href);
|
|
|
|
|
|
|
|
delete defined[href];
|
|
|
|
delete defined[href];
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|