From 5e6831ba657f1b30c5ffad0b8ef9c513261cdda6 Mon Sep 17 00:00:00 2001 From: Gunther Brunner Date: Wed, 28 May 2014 16:01:27 +0900 Subject: [PATCH] Removed circular dependency. --- .../common-ui/modals/version-update/version-update-service.js | 4 ++-- res/app/components/stf/socket/index.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/res/app/components/stf/common-ui/modals/version-update/version-update-service.js b/res/app/components/stf/common-ui/modals/version-update/version-update-service.js index a234af16..e09c4bbb 100644 --- a/res/app/components/stf/common-ui/modals/version-update/version-update-service.js +++ b/res/app/components/stf/common-ui/modals/version-update/version-update-service.js @@ -1,7 +1,7 @@ -module.exports = function FatalMessageServiceFactory($modal, $location, socket) { +module.exports = function FatalMessageServiceFactory($modal, $location) { var service = {} - var ModalInstanceCtrl = function ($scope, $modalInstance, device) { + var ModalInstanceCtrl = function ($scope, $modalInstance) { $scope.ok = function () { $modalInstance.close(true) $location.path('/') diff --git a/res/app/components/stf/socket/index.js b/res/app/components/stf/socket/index.js index b0af3a90..55f340bf 100644 --- a/res/app/components/stf/socket/index.js +++ b/res/app/components/stf/socket/index.js @@ -1,4 +1,3 @@ module.exports = angular.module('stf/socket', [ - require('stf/common-ui/modals/version-update').name ]) .factory('socket', require('./socket-service'))