js: make method parameters objects
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Wed, 22 Aug 2018 16:37:46 +0000 (18:37 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Wed, 22 Aug 2018 16:37:46 +0000 (18:37 +0200)
commitf0409bbdafcbd4f8b0be099a6b3ce0d5352c9bcd
treefc94d23b0abef3c9e7c73d8a0165262f16e575e7
parent129fa919b935d97d995bc6b457c7f6984c06e825
js: make method parameters objects

--

* As requested by using parties, the options to be passed into the
  methods are now objects, with the objects' properties better
  describing what they do, and to avoid the need to type several nulls
  in a method call if one wants the last parameter.
  - src/Keyring.js, src/gpgme.js: Changed parameters and their
    validations
  - BrowserTest/*.js Had to adapt quite some calls to the new format
lang/js/BrowserTestExtension/tests/KeyImportExport.js
lang/js/BrowserTestExtension/tests/KeyInfos.js
lang/js/BrowserTestExtension/tests/decryptTest.js
lang/js/BrowserTestExtension/tests/encryptDecryptTest.js
lang/js/BrowserTestExtension/tests/encryptTest.js
lang/js/BrowserTestExtension/tests/longRunningTests.js
lang/js/BrowserTestExtension/tests/signTest.js
lang/js/BrowserTestExtension/tests/verifyTest.js
lang/js/DemoExtension/maindemo.js
lang/js/src/Keyring.js
lang/js/src/gpgmejs.js