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/10/03 12:53:07 UTC
[whimsy] branch master updated: see if nextTick will fix the timing
problem
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 <ru...@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" <co...@whimsical.apache.org>'].