[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-17-geb7129f

by Maximilian Krambach cvs at cvs.gnupg.org
Fri Apr 27 10:21:25 CEST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, javascript-binding has been updated
       via  eb7129f3196ae4f0807ceba0c1fc9e818ea6cd22 (commit)
      from  f45b926816340d3cca37f013a9eb1b1d9cdb0cfe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit eb7129f3196ae4f0807ceba0c1fc9e818ea6cd22
Author: Maximilian Krambach <maximilian.krambach at intevation.de>
Date:   Fri Apr 27 10:21:13 2018 +0200

    js: fixed empty operation setter in Message
    
    --
    
    * src/Message.js Messages failed because they were not assigned
      operations

diff --git a/lang/js/src/Message.js b/lang/js/src/Message.js
index 9e7a883..95d043b 100644
--- a/lang/js/src/Message.js
+++ b/lang/js/src/Message.js
@@ -44,9 +44,16 @@ export class GPGME_Message {
     }
 
     set operation (op){
-
-
+        if (typeof(op) === "string"){
+            if (!this._msg){
+                this._msg = {};
+            }
+            if (!this._msg.op & permittedOperations.hasOwnProperty(op)){
+                this._msg.op = op;
+            }
+        }
     }
+
     get operation(){
         return this._msg.op;
     }

-----------------------------------------------------------------------

Summary of changes:
 lang/js/src/Message.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list