diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2012-04-02 02:26:51 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2012-04-02 02:26:51 -0400 |
| commit | 0a74881345b16b39487493364bb0c24f8cc47967 (patch) | |
| tree | 35c18f75e63d7b5cdce4ade5e20721ce15af8924 /app/js/services.js | |
| parent | 9b142c6dc7d5736acc45142a5d42c4511fc49edc (diff) | |
| download | alias-0a74881345b16b39487493364bb0c24f8cc47967.tar.gz | |
fix indent
Diffstat (limited to 'app/js/services.js')
| -rw-r--r-- | app/js/services.js | 16 |
1 files 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 |
