You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/09/27 18:44:01 UTC

[whimsy] 03/03: move to Vue event based architecture

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 <ru...@intertwingly.net>
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
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.