aboutsummaryrefslogtreecommitdiffstats
path: root/app/js
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2012-04-02 02:26:51 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2012-04-02 02:26:51 -0400
commit0a74881345b16b39487493364bb0c24f8cc47967 (patch)
tree35c18f75e63d7b5cdce4ade5e20721ce15af8924 /app/js
parent9b142c6dc7d5736acc45142a5d42c4511fc49edc (diff)
downloadalias-0a74881345b16b39487493364bb0c24f8cc47967.tar.gz
fix indent
Diffstat (limited to 'app/js')
-rw-r--r--app/js/services.js16
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