### Eclipse Workspace Patch 1.0 #P drupal-head Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.683 diff -u -r1.683 common.inc --- includes/common.inc 6 Sep 2007 12:47:20 -0000 1.683 +++ includes/common.inc 8 Sep 2007 16:30:31 -0000 @@ -1719,9 +1719,9 @@ * @return * If the first parameter is NULL, the JavaScript array that has been built so * far for $scope is returned. If the first three parameters are NULL, - * an array with all scopes is returned. + * an array with all scopes is returned. Returned values are passed by reference. */ -function drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE, $preprocess = TRUE) { +function &drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE, $preprocess = TRUE) { static $javascript = array(); // Add jquery.js and drupal.js the first time a Javascript file is added.