original_string: public static function event_handler($selector, $event, $function, array $arguments = null) {
          $selector = json_encode($selector);
          $output = "Y.on('$event', $function, $selector, null";
          if (!empty($arguments)) {
              $output .= ', ' . json_encode($arguments);
          }
          return $output . ");\n";
      }
code: public static function event_handler($selector, $event, $function, array $arguments = null) {
          $selector = json_encode($selector);
          $output = "Y.on('$event', $function, $selector, null";
          if (!empty($arguments)) {
              $output .= ', ' . json_encode($arguments);
          }
          return $output . ");\n";
      }
code_tokens: public static function event_handler ( $ selector , $ event , $ function , array $ arguments = null ) { $ selector = json_encode ( $ selector ) ; $ output = "Y.on('$event', $function, $selector, null" ; if ( ! empty ( $ arguments ) ) { $ output .= ', ' . json_encode ( $ arguments ) ; } return $ output . ");\n" ; }
docstring: Writes event handler attaching code
  
  @param array|string $selector standard YUI selector for elements, may be
  array or string, element id is in the form "#idvalue"
  @param string $event A valid DOM event (click, mousedown, change etc.)
  @param string $function The name of the function to call
  @param array $arguments An optional array of argument parameters to pass to the function
  @return string JS code fragment
docstring_tokens: Writes event handler attaching code