Index: libraries.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/libraries/libraries.module,v
retrieving revision 1.14
diff -u -p -r1.14 libraries.module
--- libraries.module	10 Nov 2010 20:57:00 -0000	1.14
+++ libraries.module	18 Nov 2010 13:18:10 -0000
@@ -429,9 +429,9 @@ function libraries_load_files($library) 
           $data = $options['data'];
           unset($options['data']);
         }
-        // Apply the default weight if the weight isn't explicitly given.
-        if (!isset($options['weight'])) {
-          $options['weight'] = ($type == 'js') ? JS_DEFAULT : CSS_DEFAULT;
+        // Apply the default group if the group isn't explicitly given.
+        if (!isset($options['group'])) {
+          $options['group'] = ($type == 'js') ? JS_DEFAULT : CSS_DEFAULT;
         }
         call_user_func('drupal_add_' . $type, $data, $options);
         $count++;
@@ -498,4 +498,3 @@ function libraries_get_version($library,
   }
   fclose($file);
 }
-
