Remove spurious dependencies from connection

This commit is contained in:
David Cormier 2014-02-09 12:01:42 -05:00
parent d4a4f1bd7f
commit eddffd6e63
1 changed files with 14 additions and 3 deletions

View File

@ -199,11 +199,22 @@ weechat.factory('handlers', ['$rootScope', 'models', 'plugins', function($rootSc
}]);
weechat.factory('connection', ['$q', '$rootScope', '$log', '$store', 'handlers', 'models', 'conn', function($q, $rootScope, $log, storage, handlers, models, conn) {
weechat.factory('connection',
['$rootScope',
'$log',
'$store',
'handlers',
'models',
'conn',
function($rootScope,
$log,
storage,
handlers,
models,
conn) {
protocol = new weeChat.Protocol();
// Takes care of the connection and websocket hooks
var connect = function (host, port, passwd, ssl, noCompression) {
var proto = ssl ? 'wss' : 'ws';