lib/react/synthetic_event.rb in isomorfeus-react-16.8.9 vs lib/react/synthetic_event.rb in isomorfeus-react-16.9.0
- old
+ new
@@ -33,21 +33,21 @@
:timestamp, :touches, :twist, :type, :view, :which, :width
native_boolean_accessors :altKey, :bubbles, :cancelable, :ctrlKey, :defaultPrevented, :isPrimary, :isTrusted, :metaKey, :repeat, :shiftKey
def current_target
- Browser::Event::Target.convert(@native.JS[:currentTarget])
+ Browser::Element.new(@native.JS[:currentTarget])
end
def native_event
Browser::Event.new(@native.JS[:nativeEvent])
end
def related_target
- Browser::Event::Target.convert(@native.JS[:relatedTarget])
+ Browser::Element.new(@native.JS[:relatedTarget])
end
def target
- Browser::Event::Target.convert(@native.JS[:target])
+ Browser::Element.new(@native.JS[:target])
end
end
end
\ No newline at end of file