javascripts/right-tabs-src.js in right-rails-0.3.2 vs javascripts/right-tabs-src.js in right-rails-0.4.0
- old
+ new
@@ -34,11 +34,11 @@
Xhr: null, // the xhr addtional options
Cookie: null // set the cookie options if you'd like to keep the last selected tab index in cookies
},
// scans and automatically intializes the tabs
- rescan: function() {
- $$('*.right-tabs').each(function(element) {
+ rescan: function(scope) {
+ ($(scope) || document).select('*.right-tabs').each(function(element) {
if (!element._tabs) {
new Tabs(element);
}
});
}
\ No newline at end of file