mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 23:47:42 +00:00
GUAC-1172: Comply with newly-adopted JavaScript coding style.
This commit is contained in:
@@ -32,7 +32,7 @@ var Guacamole = Guacamole || {};
|
||||
* @param {Guacamole.InputStream} stream
|
||||
* The stream that JSON will be read from.
|
||||
*/
|
||||
Guacamole.JSONReader = function(stream) {
|
||||
Guacamole.JSONReader = function guacamoleJSONReader(stream) {
|
||||
|
||||
/**
|
||||
* Reference to this Guacamole.JSONReader.
|
||||
@@ -64,7 +64,7 @@ Guacamole.JSONReader = function(stream) {
|
||||
* @return {Number}
|
||||
* The current length of this Guacamole.JSONReader.
|
||||
*/
|
||||
this.getLength = function() {
|
||||
this.getLength = function getLength() {
|
||||
return json.length;
|
||||
};
|
||||
|
||||
@@ -76,7 +76,7 @@ Guacamole.JSONReader = function(stream) {
|
||||
* The contents of this Guacamole.JSONReader, as parsed from the JSON
|
||||
* contents of the input stream.
|
||||
*/
|
||||
this.getJSON = function() {
|
||||
this.getJSON = function getJSON() {
|
||||
return JSON.parse(json);
|
||||
};
|
||||
|
||||
@@ -93,7 +93,7 @@ Guacamole.JSONReader = function(stream) {
|
||||
};
|
||||
|
||||
// Simply call onend when end received
|
||||
stringReader.onend = function() {
|
||||
stringReader.onend = function onend() {
|
||||
if (guacReader.onend)
|
||||
guacReader.onend();
|
||||
};
|
||||
|
Reference in New Issue
Block a user