protected function SetDraggable(&$element) { $this->LoadJavascript(); Graph::$javascript->SetDraggable($element); }