- 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:
parent
c79ae8b689
commit
12bf39e93c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user