PDA

View Full Version : ExtJs3.1???Window?Close??JavaScript????????????



sayama
13 Jan 2010, 4:18 AM
???ExtJS?3.0??3.1????????????????????
??????????????????????3.0?????????????
JavaScript?????????????????????

????????????????????????
???????????????????????????????????????
???Close??????????????????FireFox????????????
???Window?????????????????????????????????????????

?me.dom is undefined
?anonymous("qtip", "ext")ext-all-debug.js (2856 ??)
?anonymous(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all-??debug.js (29137 ??)
?anonymous(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all-debug.js (29168 ??)
?h(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all-debug.js (1934 ??)



?me.dom.className += (!me.hasClass(v) && v ? " " + v : "");\n

???????? this.close() ? this.hide()?????????????????????
?????????????????????????????????????????????

???????????

sayama
15 Jan 2010, 4:34 AM
??????????
???? Ext.menu.Menu ? autoDestroy:false???????????
JavaScript????????????????????
???menu?destroy()???????????????????????
??????window.close???????Ext.MessageBox.confirm?Function??
??????????????????????????

window.close()??menu.destroy????????????????????

mashiki
15 Jan 2010, 7:30 AM
??????????????

??????hide???
?endClose?????????
?window?close???

???????
????????????????????????????????
?????????????????dom???????????
hide????class????????????????????

2.0?2.1?2.2?3.0?3.1 ??????????????????
???????????????????

sayama ?????????ext-all.js??me.dom????????
className????????????????????????????????

???????????????
this.fireEvent("endClose")
??(??close?????????????????????)?
???????????????????????



(new Ext.util.DelayedTask(
function() {
this.fireEvent("endClose");
},
this
)).delay(100);


???cpu?100%???????????0.1????????hide????????
?????????????
?hide??????endClose?fire?
???hide???????????delay???
?????????????????????????????????????????????
????????

??????????event???????????delay (????fireEvent)?????
?????????????????????...?

sayama
16 Jan 2010, 2:54 PM
mashiki???????????????????
????????????????

??????????????????????????????????
windows??????????????????????????????

??????????????ext-all????????????????