### Eclipse Workspace Patch 1.0
#P drupal5
Index: sites/all/modules/fivestar/jquery.rating.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/jquery.rating.js,v
retrieving revision 1.2.2.5
diff -u -r1.2.2.5 jquery.rating.js
--- sites/all/modules/fivestar/jquery.rating.js	3 Jul 2007 05:00:36 -0000	1.2.2.5
+++ sites/all/modules/fivestar/jquery.rating.js	4 Jul 2007 05:41:18 -0000
@@ -28,15 +28,13 @@
      */
     var buildRating = function($obj){
         var $widget = buildInterface($obj),
-            $stars = $($widget.children('.star')),
-            $cancel = $($widget.end().children('.cancel')),
+            $stars = $('.star', $widget),
+            $cancel = $('.cancel', $widget),
             averageIndex = 0,
             averagePercent = 0;
         // Set default rating
         $("input[@type='radio']", $obj).each(function () { if (this.checked) { averageIndex = this.value; } });
         
-        $widget.end();
-        
         // hover events.
         // and focus events added
         $stars
@@ -192,13 +190,13 @@
     /**
      * Set up the plugin
      */
-    $.fn.rating = function(){
-        var stack = [];
-        this.each(function(){
-            var ret = buildRating($(this));
-            stack = $.merge(ret, stack);
-        });
-        return $(stack);
+    $.fn.rating = function() {
+      var stack = [];
+      this.each(function() {
+          var ret = buildRating($(this));
+          stack.push(ret);
+      });
+      return stack;
     }
   // fix ie6 background flicker problem.
   if ($.browser.msie == true) {
