whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: see if nextTick will fix the timing problem
Date Tue, 03 Oct 2017 12:53:07 GMT
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


The following commit(s) were added to refs/heads/master by this push:
     new b23a816  see if nextTick will fix the timing problem
b23a816 is described below

commit b23a8165d2e8a608d2f8798ccc1340f4182f8206
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Oct 3 08:52:31 2017 -0400

    see if nextTick will fix the timing problem
---
 www/board/agenda/views/buttons/reminders.js.rb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/www/board/agenda/views/buttons/reminders.js.rb b/www/board/agenda/views/buttons/reminders.js.rb
index 558b30c..bdccedc 100644
--- a/www/board/agenda/views/buttons/reminders.js.rb
+++ b/www/board/agenda/views/buttons/reminders.js.rb
@@ -37,9 +37,11 @@ class InitialReminder < Vue
 
   # wire up event handlers
   def mounted()
-    Array(document.querySelectorAll('.btn-primary')).each do |button|
-      if button.getAttribute('data-target') == '#reminder-form'
-        button.addEventListener :click, self.loadText
+    Vue.nextTick do
+      Array(document.querySelectorAll('.btn-primary')).each do |button|
+        if button.getAttribute('data-target') == '#reminder-form'
+          button.addEventListener :click, self.loadText
+        end
       end
     end
   end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message