Permalink
Browse files

Fix method order.

  • Loading branch information...
1 parent 335a05c commit d8fa6ce2f5431393c89c0db8c5bb13be93942255 @jfirebaugh committed Oct 18, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/bermuda/xpath.rb
View
@@ -33,17 +33,17 @@ def accordion_header(title = nil, options = {})
xpath
end
+ def accordion_content(title = nil, options = {})
+ accordion_header(title, options).next_sibling
+ end
+
def autocompletion(text = nil)
xpath = descendant[attr(:class).includes('ui-autocomplete')]
xpath = xpath.descendant[attr(:class).includes('ui-menu-item')]
xpath = xpath[descendant(:a).text.is text] if text
xpath
end
- def accordion_content(title = nil, options = {})
- accordion_header(title, options).next_sibling
- end
-
def dialog(title = nil)
xpath = descendant[attr(:class).includes('ui-dialog')]
xpath = xpath[descendant[attr(:class).includes('ui-dialog-title')].text.is title] if title

0 comments on commit d8fa6ce

Please sign in to comment.