Skip to content

Commit 2b532df

Browse files
committed
add event target
1 parent 96e759d commit 2b532df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.1
1+
0.6.2

lib/volt/page/bindings/event_binding.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def stop
1616
# `this.js_event.stopPropagation();`
1717
`this.js_event.preventDefault();`
1818
end
19+
20+
def target
21+
`this.js_event.toElement`
22+
end
1923
end
2024

2125

0 commit comments

Comments
 (0)