Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/utils.js

Issue 6309488109813760: Issue 2236 - Worked around JsDoc bug with inline annotations (Closed)
Patch Set: Created March 30, 2015, 2:11 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/requestNotifier.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -215,8 +215,10 @@
* Posts an action to the event queue of the current thread to run it
* asynchronously. Any additional parameters to this function are passed
* as parameters to the callback.
+ * @param {function} callback
+ * @param {object} thisPtr
*/
- runAsync: function(/**Function*/ callback, /**Object*/ thisPtr)
+ runAsync: function(callback, thisPtr)
{
let params = Array.prototype.slice.call(arguments, 2);
let runnable = {
@@ -400,8 +402,12 @@
/**
* Verifies RSA signature. The public key and signature should be base64-encoded.
+ * @param {string} key
+ * @param {string} signature
+ * @param {string} data
+ * @return {boolean}
*/
- verifySignature: function(/**String*/ key, /**String*/ signature, /**String*/ data) /**Boolean*/
+ verifySignature: function(key, signature, data)
{
if (!Utils.crypto)
return false;
« no previous file with comments | « lib/requestNotifier.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld