GUAC-791: Add missing constructor tag for Guacamole.Status. Fix swapped status code definitions.

This commit is contained in:
Michael Jumper
2015-12-14 13:54:44 -08:00
parent 2959513d95
commit 4554c64bb7

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2014 Glyptodon LLC * Copyright (C) 2015 Glyptodon LLC
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -26,10 +26,13 @@ var Guacamole = Guacamole || {};
* A Guacamole status. Each Guacamole status consists of a status code, defined * A Guacamole status. Each Guacamole status consists of a status code, defined
* by the protocol, and an optional human-readable message, usually only * by the protocol, and an optional human-readable message, usually only
* included for debugging convenience. * included for debugging convenience.
* *
* @param {Number} code The Guacamole status code, as defined by * @constructor
* Guacamole.Status.Code. * @param {Number} code
* @param {String} [message] An optional human-readable message. * The Guacamole status code, as defined by Guacamole.Status.Code.
*
* @param {String} [message]
* An optional human-readable message.
*/ */
Guacamole.Status = function(code, message) { Guacamole.Status = function(code, message) {
@@ -101,16 +104,16 @@ Guacamole.Status.Code = {
"SERVER_BUSY": 0x0201, "SERVER_BUSY": 0x0201,
/** /**
* The operation was unsuccessful due to an error or otherwise unexpected * The operation could not be performed because the upstream server is not
* condition of the upstream server. * responding.
* *
* @type {Number} * @type {Number}
*/ */
"UPSTREAM_TIMEOUT": 0x0202, "UPSTREAM_TIMEOUT": 0x0202,
/** /**
* The operation could not be performed because the upstream server is not * The operation was unsuccessful due to an error or otherwise unexpected
* responding. * condition of the upstream server.
* *
* @type {Number} * @type {Number}
*/ */