From 28a5d4fbf8a42649360e9d1e1206c062e0a5ce8d Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 2 Apr 2012 02:37:41 -0400 Subject: regorg files --- app/js/services.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 app/js/services.js (limited to 'app/js/services.js') diff --git a/app/js/services.js b/app/js/services.js deleted file mode 100644 index 02d8a8b..0000000 --- a/app/js/services.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -angular.module('Alias.services', [], function($provide) { -$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.'); - } 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); - connection.connect(NAME, PASSWORD, connect_callback); - return connection; - }]); -}); \ No newline at end of file -- cgit v1.2.3-70-g09d2