lib/watir/elements/row.rb in watir-6.6.3 vs lib/watir/elements/row.rb in watir-6.7.0

- old
+ new

@@ -9,9 +9,9 @@ class RowCollection < TableRowCollection def to_a # we do this craziness since the xpath used will find direct child rows # before any rows inside thead/tbody/tfoot... - super.sort_by { |e| e.attribute_value(:rowIndex).to_i } + @to_a ||= super.sort_by { |e| e.attribute_value(:rowIndex).to_i } end end end # Watir