Simon Hunt

GUI -- TopoView - Minor formatting changes.

Change-Id: Ibd02437fb6f6c3d75546d29ffdb15fde801f0292
......@@ -216,7 +216,6 @@
// --- Controller Definition -----------------------------------------
angular.module('ovTopo', moduleDependencies)
.controller('OvTopoCtrl', [
'$scope', '$log', '$location', '$timeout',
'FnService', 'MastService', 'KeyService', 'ZoomService',
......
......@@ -19,7 +19,7 @@
Defines the conduit between the client and the server:
- provides a clean API for sending events to the server
- dispatches incoming events from the server to the appropriate submodule
- dispatches incoming events from the server to the appropriate sub-module
*/
......@@ -60,34 +60,34 @@
var nilApi = {},
dispatcher = {
handleEvent: function (ev) {
var eid = ev.event,
api = evApis[eid] || nilApi,
eh = api[eid];
if (eh) {
$log.debug(' << *Rx* ', eid, ev.payload);
eh(ev.payload);
} else {
$log.warn('Unknown event (ignored):', ev);
}
},
sendEvent: function (evType, payload) {
if (wsock) {
$log.debug(' *Tx* >> ', evType, payload);
wes.sendEvent(wsock, evType, payload);
} else {
$log.warn('sendEvent: no websocket open:', evType, payload);
handleEvent: function (ev) {
var eid = ev.event,
api = evApis[eid] || nilApi,
eh = api[eid];
if (eh) {
$log.debug(' << *Rx* ', eid, ev.payload);
eh(ev.payload);
} else {
$log.warn('Unknown event (ignored):', ev);
}
},
sendEvent: function (evType, payload) {
if (wsock) {
$log.debug(' *Tx* >> ', evType, payload);
wes.sendEvent(wsock, evType, payload);
} else {
$log.warn('sendEvent: no websocket open:', evType, payload);
}
}
}
};
};
// === Web Socket functions ===
function onWsOpen() {
$log.debug('web socket opened...');
// kick off request for periodic summary data...
// start by requesting periodic summary data...
dispatcher.sendEvent('requestSummary');
}
......
......@@ -355,7 +355,7 @@
// Module definition
angular.module('ovTopo')
.factory('TopoModelService',
.factory('TopoModelService',
['$log', 'FnService', 'RandomService',
function (_$log_, _fs_, _rnd_) {
......
......@@ -244,7 +244,7 @@
// === MODULE DEFINITION ===
angular.module('ovTopo')
.factory('TopoSelectService',
.factory('TopoSelectService',
['$log', 'FnService', 'FlashService', 'TopoPanelService',
'TopoTrafficService',
......
......@@ -199,7 +199,7 @@
// === MODULE DEFINITION ===
angular.module('ovTopo')
.factory('TopoTrafficService',
.factory('TopoTrafficService',
['$log', 'FnService', 'FlashService',
function (_$log_, _fs_, _flash_) {
......