From 830b36c970a5e1c21c74df331a6248514252d0a5 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 24 Sep 2013 00:00:16 -0700 Subject: [PATCH] Comment private file upload functions. --- .../src/main/webapp/scripts/client-ui.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/guacamole/src/main/webapp/scripts/client-ui.js b/guacamole/src/main/webapp/scripts/client-ui.js index 30dc686ff..80e4d23d7 100644 --- a/guacamole/src/main/webapp/scripts/client-ui.js +++ b/guacamole/src/main/webapp/scripts/client-ui.js @@ -1042,11 +1042,25 @@ GuacUI.Client.attach = function(guac) { // Stop detection if press stops GuacUI.Client.display.addEventListener('touchend', GuacUI.Client.stopLongPressDetect, true); + /** + * Ignores the given event. + * + * @private + * @param {Event} e The event to ignore. + */ function _ignore(e) { e.preventDefault(); e.stopPropagation(); } + /** + * Converts the given bytes to a base64-encoded string. + * + * @private + * @param {Uint8Array} bytes A Uint8Array which contains the data to be + * encoded as base64. + * @return {String} The base64-encoded string. + */ function _get_base64(bytes) { var data = ""; @@ -1060,6 +1074,13 @@ GuacUI.Client.attach = function(guac) { } + /** + * Uploads the given file to the server. + * + * @private + * @param {Number} index The index of the stream to upload through. + * @param {File} file The file to upload. + */ function _upload_file(index, file) { // Construct reader for file