javascripts/right-selectable-src.js in right-rails-0.3.2 vs javascripts/right-selectable-src.js in right-rails-0.4.0

- old
+ new

@@ -28,12 +28,12 @@ parseIds: false, // if it should parse integer ids out of the keys refresh: true // a flag if it should automatically refresh the items list }, - rescan: function() { - $$('*.right-selectable').each(function(element) { + rescan: function(scope) { + ($(scope)||document).select('*.right-selectable').each(function(element) { if (!element._selectable) { new Selectable(element); } }); } @@ -463,10 +463,10 @@ // shows list for the single-selects showList: function(event) { event.stop(); if (this.isSingle) { var dims = this.container.dimensions(); - + this.element.setStyle({ top: (dims.top + dims.height) + 'px', left: dims.left + 'px', width: dims.width + 'px' }).show(this.options.fxName, { \ No newline at end of file