You are here

public static function RenderCache::drupal_add_js in Render cache 7.2

Overrides drupal_add_js().

See also

drupal_add_js()

File

lib/RenderCache.php, line 167
Contains RenderCache

Class

RenderCache
Static Service Container wrapper wrapping Drupal class.

Code

public static function drupal_add_js($data = NULL, $options = NULL) {
  if (!static::$renderStack) {
    return static::callOriginalFunction('drupal_add_js', func_get_args());
  }
  return static::$renderStack
    ->drupal_add_assets('js', $data, $options);
}