Skip to content

Commit

Permalink
Fixed typos and some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Rune Halvorsen committed Apr 9, 2010
1 parent 3cc4009 commit 3330d33
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions src/build-application/build_application.js
@@ -1,7 +1,7 @@
/**
* @fileoverview
* (This file was autogenerated by opprotoc)
*
*
* The application is created in two steps:
*
* Step 1: All objects that do not depend on the services available from the
Expand All @@ -20,13 +20,13 @@
* a function named window.app.on_services_created, which
* will be called automatically
*
*
* There is an other moment to hook up a callback.
*
* There is an other moment to hook up a callback.
* That is when all services are sucessfully enabled.
* The callback can either be passed to the build_application call
* as second argument or by defining a function named
* The callback can either be passed to the build_application call
* as second argument or by defining a function named
* window.app.on_services_enabled
*
*
*/
if( window.app )
{
Expand Down Expand Up @@ -60,7 +60,7 @@ window.app.build_application = function(on_services_created, on_services_enabled
*/
var on_host_info_callback = function(service_descriptions)
{
var
var
service_name = '',
service = null,
class_name = '',
Expand All @@ -75,19 +75,19 @@ window.app.build_application = function(on_services_created, on_services_enabled
{
service = service_descriptions[service_name];
version = re_version.exec(service.version);
version = version && version[1] || 0;
class_name = get_class_name(service_name);
version = version && version[1] || 0;
class_name = get_class_name(service_name);
// the initial message map is set in cls.debug.guess_message_map
if(window.ini.debug &&
window.message_maps[service_name] &&
if(window.ini.debug &&
window.message_maps[service_name] &&
window.message_maps[service_name].versions &&
window.message_maps[service_name].versions[version])
{
window.message_maps[service_name] = window.message_maps[service_name].versions[version];
window.message_maps[service_name].versions = null;
}
builder = window.app.builders[class_name] && window.app.builders[class_name][version];
if (builder)
if (builder)
{
builder(service);
}
Expand Down Expand Up @@ -129,7 +129,7 @@ window.app.build_application = function(on_services_created, on_services_enabled
// global objects
window.tagManager = new window.cls.TagManager();
window.helpers = new cls.Helpers();

// create window.services namespace and register it.
cls.ServiceBase.register_services(new cls.Namespace("services"));
[
Expand Down Expand Up @@ -169,7 +169,7 @@ window.app.build_application = function(on_services_created, on_services_enabled
{
window.ui_framework.setup();
window.client = new cls.Client();
client.setup();
client.setup();
messages.post('application-setup');
}
else
Expand Down Expand Up @@ -236,7 +236,7 @@ window.app.builders.HttpLogger["2.0"] = function(service)
if(namespace)
{
window.app.helpers.implement_service(namespace);
(new namespace.ParseMessges()).bind();
(new namespace.ParseMessages()).bind();
}
}

Expand Down Expand Up @@ -274,21 +274,21 @@ window.app.helpers.implement_service = function(namespace)

window.app.helpers.parse_url_arguments = function()
{
/*
/*
supported arguments:
- debug
- log-filter
*/
var
args = location.search.slice(1).split(';'),
params = {},
arg = '',
var
args = location.search.slice(1).split(';'),
params = {},
arg = '',
i = 0;

for( ; arg = args[i]; i++)
{
arg = arg.split('=');
params[arg[0].replace(/^ +/, '').replace(/ +$/, '')] =
params[arg[0].replace(/^ +/, '').replace(/ +$/, '')] =
arg[1] && arg[1].replace(/^ +/, '').replace(/ +$/, '') || true;
}
return params;
Expand Down
2 changes: 1 addition & 1 deletion src/http-logger/httplogger_service.js
Expand Up @@ -12,7 +12,7 @@ cls.HttpLogger["2.0"] || (cls.HttpLogger["2.0"] = {});
* @constructor
* @extends ServiceBase
*/
cls.HttpLogger["2.0"].ParseMessges = function(name)
cls.HttpLogger["2.0"].ParseMessages = function(name)
{
var self = this;
var view = "http_logger";
Expand Down

0 comments on commit 3330d33

Please sign in to comment.