GUAC-1172: Comply with newly-adopted JavaScript coding style.

This commit is contained in:
Michael Jumper
2015-06-22 12:41:11 -07:00
parent 88a3f12a8b
commit 4ec407b6b6
3 changed files with 13 additions and 13 deletions

View File

@@ -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();
};