var dataVarMap = {
"$dataSystem": "System"
}
if(typeof DataManager.onLoadTrsHookBk === "undefined"){
DataManager.onLoadTrsHookBk = DataManager.onLoad
}
DataManager.onLoad = function(obj){
var thisObjName = null;
var thisObjKey = null;
for(var key in dataVarMap){
if(window[key] === obj){
thisObjName = dataVarMap[key];
thisObjKey = key;
break
}
}
if(thisObjName === "System"){
procSystemData();
}
return this.onLoadTrsHookBk(obj);
}
function procSystemData(){
if(typeof $dataSystem === "undefined" || !$dataSystem){return}
//还原 $dataSystem
}
var dataVarMap = {
"$dataSystem": "System"
}
if(typeof DataManager.onLoadTrsHookBk === "undefined"){
DataManager.onLoadTrsHookBk = DataManager.onLoad
}
DataManager.onLoad = function(obj){
var thisObjName = null;
var thisObjKey = null;
for(var key in dataVarMap){
if(window[key] === obj){
thisObjName = dataVarMap[key];
thisObjKey = key;
break
}
}
if(thisObjName === "System"){
procSystemData();
}
return this.onLoadTrsHookBk(obj);
}
function procSystemData(){
if(typeof $dataSystem === "undefined" || !$dataSystem){return}
//还原 $dataSystem
}