- send remove phone button only when button has been added to toolbar

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2165 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2009-08-11 15:17:21 +00:00
parent c79ae8b689
commit 12bf39e93c

View File

@ -61,12 +61,15 @@ package org.bigbluebutton.modules.phone.maps
}
public function removeToolbarButton():void {
var event:RemoveToolbarButtonEvent = new RemoveToolbarButtonEvent(RemoveToolbarButtonEvent.REMOVE_TOOLBAR_BUTTON_EVENT);
event.button = phoneButton;
trace("Dispatching REMOVE TOOLBAR BUTTON EVENT");
globalDispatcher.dispatchEvent(event);
buttonOpen = false;
if (buttonOpen) {
var event:RemoveToolbarButtonEvent = new RemoveToolbarButtonEvent(RemoveToolbarButtonEvent.REMOVE_TOOLBAR_BUTTON_EVENT);
event.button = phoneButton;
trace("Dispatching REMOVE TOOLBAR BUTTON EVENT");
globalDispatcher.dispatchEvent(event);
buttonOpen = false;
}
}
public function disableToolbarButton():void {