"MDL-22323, fixed right layout unit event"

This commit is contained in:
Dongsheng Cai 2010-05-05 03:59:26 +00:00
parent 972cc9d199
commit 7d2975c138

View File

@ -46,9 +46,12 @@ M.mod_chat_ajax.init = function(Y, cfg) {
});
this.layout.on('render', function() {
this.getUnitByPosition('left').on('close', function() {
closeLeft();
});
var unit = this.getUnitByPosition('right');
if (unit) {
unit.on('close', function() {
closeLeft();
});
}
}, this.layout);
this.layout.render();