public function registerClientEvents($id)
    {
        $view = $this->getView();
        $js = [];
        foreach ($this->clientEvents as $event => $handler) {
            $js[] = "jQuery('$id').on('$event', $handler);";
        }
        $view->registerJs(implode("\n", $js));
    }
public function registerClientEvents($id)
    {
        $view = $this->getView();
        $js = [];
        foreach ($this->clientEvents as $event => $handler) {
            $js[] = "jQuery('$id').on('$event', $handler);";
        }
        $view->registerJs(implode("\n", $js));
    }
public function registerClientEvents ( $ id ) { $ view = $ this -> getView ( ) ; $ js = [ ] ; foreach ( $ this -> clientEvents as $ event => $ handler ) { $ js [ ] = "jQuery('$id').on('$event', $handler);" ; } $ view -> registerJs ( implode ( "\n" , $ js ) ) ; }
Register client events

@param $id
Register client events