- if ($com['why'] !== true && !isset($this->triggers[$com['why']])) {
- unset($this->aCommands[$idx]);
-// display_error('unset '.$com['t']);
- }
- else
- if($com['n'] == 'up' && $com['t'] == '_page_body') {
- $cmds = array($com);
- foreach( $this->aCommands as $k=> $cmd) {
- if ($cmd['n'] == 'fc' || $cmd['n'] == 'js') { // save focus
- $cmds[] = $cmd; //break;
- }
- }
- $this->aCommands = $cmds;
- break;
- }
+ if ($com['why'] !== true && !isset($this->triggers[$com['why']])) {
+ unset($this->aCommands[$idx]);
+ }
+ elseif($com['n'] == 'up' && $com['t'] == '_page_body') {
+ $cmds = array($com);
+ foreach( $this->aCommands as $k=> $cmd) {
+ if ($cmd['n'] == 'fc' || $cmd['n'] == 'js') { // save focus
+ $cmds[] = $cmd; //break;
+ }
+ }
+ $this->aCommands = $cmds;
+ break;
+ }