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: fix test case failure
Date Fri, 19 Jan 2018 23:43:51 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 6ebee35  fix test case failure
6ebee35 is described below

commit 6ebee35f8d0ce7d575919cdd6c7b4127595fbafd
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Fri Jan 19 18:43:38 2018 -0500

    fix test case failure
---
 www/board/agenda/views/buttons/post.js.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/buttons/post.js.rb b/www/board/agenda/views/buttons/post.js.rb
index a842414..3625d27 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -191,7 +191,7 @@ class Post < Vue
     indent = start = finish = 0
 
     # extract selection (if any)
-    if textarea.selectionEnd > textarea.selectionStart
+    if textarea and textarea.selectionEnd > textarea.selectionStart
       start = textarea.selectionStart
       start -= 1  while start > 0 and report[start-1] != "\n"
       finish = textarea.selectionEnd

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

Mime
View raw message