src/FormField/Upload.php
public function addJSAction($action)
    {
        if (is_array($action)) {
            $this->jsActions = array_merge($action, $this->jsActions);
        } else {
            $this->jsActions[] = $action;
        }
    }
public function addJSAction($action)
    {
        if (is_array($action)) {
            $this->jsActions = array_merge($action, $this->jsActions);
        } else {
            $this->jsActions[] = $action;
        }
    }
public function addJSAction ( $ action ) { if ( is_array ( $ action ) ) { $ this -> jsActions = array_merge ( $ action , $ this -> jsActions ) ; } else { $ this -> jsActions [ ] = $ action ; } }
Add a js action to be return to server on callback.

@param $action
Add a js action to be return to server on callback .