This is an automated email from the ASF dual-hosted git repository. rubys pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit bcbb73965e626ddeb3f02d6dae18ef61f787f14c Author: Sam Ruby <[email protected]> AuthorDate: Wed Sep 27 14:43:37 2017 -0400 move to Vue event based architecture --- www/board/agenda/views/event-bus.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/board/agenda/views/event-bus.rb b/www/board/agenda/views/event-bus.rb new file mode 100644 index 0000000..e67aa93 --- /dev/null +++ b/www/board/agenda/views/event-bus.rb @@ -0,0 +1,7 @@ +# 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 -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
