Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
Add View#find(selector) as shortcut of element.find(selector)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Dec 23, 2013
1 parent 6da369e commit d2e853d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opal/vienna/view.rb
Expand Up @@ -46,6 +46,10 @@ def tag_name
:div
end

def find(selector)
element.find(selector)
end

def setup_events
return @dom_events if @dom_events

Expand Down

0 comments on commit d2e853d

Please sign in to comment.