From 0a74881345b16b39487493364bb0c24f8cc47967 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 2 Apr 2012 02:26:51 -0400 Subject: fix indent --- app/js/services.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/js/services.js b/app/js/services.js index 1b1882e..02d8a8b 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -5,19 +5,19 @@ $provide.factory('connection', ['$log', function($log) { function connect_callback(status){ if ( status == Strophe.Status.CONNECTING ) { - $log('Strophe is connecting.'); - } else if ( status == Strophe.Status.CONNFAIL ) { - $log('Strophe failed to connect.'); - } else if ( status == Strophe.Status.DISCONNECTING ) { - $log('Strophe is disconnecting.'); + $log('Strophe is connecting.'); + } else if ( status == Strophe.Status.CONNFAIL ) { + $log('Strophe failed to connect.'); + } else if ( status == Strophe.Status.DISCONNECTING ) { + $log('Strophe is disconnecting.'); } else if ( status == Strophe.Status.DISCONNECTED ) { $dev.log('Strophe is disconnected.'); } else if ( status == Strophe.Status.CONNECTED ) { $log('Strophe is connected.'); } }; - var connection = new Strophe.Connection(BOSH_SERVICE); + var connection = new Strophe.Connection(BOSH_SERVICE); connection.connect(NAME, PASSWORD, connect_callback); - return connection; - }]); + return connection; + }]); }); \ No newline at end of file -- cgit v1.2.3-70-g09d2