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

- old
+ new

@@ -40,12 +40,13 @@ // referenece to the currently active draggable current: null, // scans the document for auto-processed draggables with the rel="draggable" attribute - rescan: function() { + rescan: function(scope) { var key = this.Options.relName; - $$('*[rel^="'+key+'"]').each(function(element) { + + ($(scope)||document).select('*[rel^="'+key+'"]').each(function(element) { if (!element._draggable) { var data = element.get('data-'+key+'-options'); new this(element, eval('('+data+')') || {}); } }, this); \ No newline at end of file