Sign in
apache
/
whimsy
/
dc688d87404a64a467ca1a797501bae2c8cd2588
/
.
/
www
/
board
/
agenda
/
views
/
event-bus.rb
blob: e67aa938c65cc4dac3b2757fa2932184ffedb199 [
file
] [
log
] [
blame
]
# https://alligator.io/vuejs/global-event-bus/
EventBus
=
new
Vue
()
# export 'dollar-less' version of event methods to make them easier to call
%
w
(
emit on once off
).
each
do
|
method
|
EventBus
[
method
]
=
EventBus
[
'$'
+
method
]
end