Skip to content

Commit

Permalink
Use new class syntax for bridging Element to jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Nov 2, 2013
1 parent 85f7c42 commit 39134f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions opal/opal-jquery/element.rb
Expand Up @@ -10,11 +10,9 @@
else {
throw new Error("jQuery must be included before opal-jquery");
}
Opal.bridge_class('Element', dom_class);
}

class Element
class Element < `dom_class`
include Enumerable

def self.find(selector)
Expand Down

0 comments on commit 39134f4

Please sign in to comment.