whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 02/02: use splat operator for better es2015 conversion
Date Tue, 23 Jan 2018 20:24:41 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

commit cd88536a0dc52b9ff684254d21e577e57aa4f42a
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Jan 23 15:24:08 2018 -0500

    use splat operator for better es2015 conversion
---
 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 3625d27..0689514 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -242,7 +242,7 @@ class Post < Vue
     reader = FileReader.new
     def reader.onload(event)
       result = event.target.result
-      base64 = btoa(String.fromCharCode.apply(null, Uint8Array.new(result)))
+      base64 = btoa(String.fromCharCode(*Uint8Array.new(result)))
       post 'financials', spreadsheet: base64 do |response|
         report = @report
         report += "\n" if report and not report.end_with? "\n"

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

Mime
View raw message