original_string: protected function get_javascript_code($ondomready) {
          $where = $ondomready ? 'ondomready' : 'normal';
          $output = '';
          if ($this->jscalls[$where]) {
              foreach ($this->jscalls[$where] as $data) {
                  $output .= js_writer::function_call($data[0], $data[1], $data[2]);
              }
              if (!empty($ondomready)) {
                  $output = "    Y.on('domready', function() {\n$output\n});";
              }
          }
          return $output;
      }
code: protected function get_javascript_code($ondomready) {
          $where = $ondomready ? 'ondomready' : 'normal';
          $output = '';
          if ($this->jscalls[$where]) {
              foreach ($this->jscalls[$where] as $data) {
                  $output .= js_writer::function_call($data[0], $data[1], $data[2]);
              }
              if (!empty($ondomready)) {
                  $output = "    Y.on('domready', function() {\n$output\n});";
              }
          }
          return $output;
      }
code_tokens: protected function get_javascript_code ( $ ondomready ) { $ where = $ ondomready ? 'ondomready' : 'normal' ; $ output = '' ; if ( $ this -> jscalls [ $ where ] ) { foreach ( $ this -> jscalls [ $ where ] as $ data ) { $ output .= js_writer :: function_call ( $ data [ 0 ] , $ data [ 1 ] , $ data [ 2 ] ) ; } if ( ! empty ( $ ondomready ) ) { $ output = "    Y.on('domready', function() {\n$output\n});" ; } } return $ output ; }
docstring: Get the inline JavaScript code that need to appear in a particular place.
  @param bool $ondomready
  @return string
docstring_tokens: Get the inline JavaScript code that need to appear in a particular place .