We designed our UI with DOJO and DWR.I am a student in SCAU.
When the user click on left:a href="#" onClick="main.openListPage('product');">产品管理
We create a new tab on the right:
div dojoType="dijit.layout.TabContainer" id="right" jsId="right" sizeShare="90" sizeMin="50" layoutAlign="client"
But every time when user refresh this web site mays the EMS memory increase.It's so badly that when we opened two or more than two tab,if we keep refreshing,the EMS memory keep increasing.What make a serious problem.
It's not really a problem in Opera or other Browers.But just in IE!
Can any body help me?!
in main.js:
main.openListPage = function(type){
var id=type + "_listPage";
var listPage = null;
if(this.pages[id]){
listPage = this.pages[id];
if(listPage.closed){
listPage.closed = false;
right.addChild(listPage);
}
}else{
var params = {};
params.id = id;
params.type = type;
params.closable = false;
params.closed = false;
params.setting = this.pageConfigs[type];
params.store = this.stores[type];
listPage = new com.gnete.bsp.web.ListPage(params);
params = null;
dojo.connect(listPage, "onClose", main, "closeListPage");
this.pages[id] = listPage;
right.addChild(listPage);
CollectGarbage();
}
right.selectChild(listPage);
listPage.update();
listPage = null;
CollectGarbage();
}
in listPage:
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.declare("com.gnete.bsp.web.ListPage", [dijit.layout.LayoutContainer,dijit._Templated], {
...
