Skip to content

Commit 39134f4

Browse files
committed
Use new class syntax for bridging Element to jQuery
1 parent 85f7c42 commit 39134f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opal/opal-jquery/element.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
else {
1111
throw new Error("jQuery must be included before opal-jquery");
1212
}
13-
14-
Opal.bridge_class('Element', dom_class);
1513
}
1614

17-
class Element
15+
class Element < `dom_class`
1816
include Enumerable
1917

2018
def self.find(selector)

0 commit comments

Comments
 (0)