javascripts/right-rater-src.js in right-rails-0.3.2 vs javascripts/right-rater-src.js in right-rails-0.4.0
- old
+ new
@@ -28,11 +28,11 @@
param: 'rate', // the value param name
Xhr: null // additional Xhr options
},
// searches and initializes rating units
- rescan: function() {
- $$('div.right-rater').each(function(element) {
+ rescan: function(scope) {
+ ($(scope)||document).select('div.right-rater').each(function(element) {
if (!element._rater) new Rater(element);
});
}
},
\ No newline at end of file