Fixed style errors

This commit is contained in:
Henry 2017-02-21 18:33:51 -08:00
parent b3cf7a5d93
commit 347fb6d882
11 changed files with 13 additions and 10 deletions

View File

@ -19,7 +19,7 @@
* this source code distribution or the Licensing information page available * this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global define,Promise*/ /*global define*/
define({ define({
START_TIME: Date.now() - 24 * 60 * 60 * 1000 // Now minus a day. START_TIME: Date.now() - 24 * 60 * 60 * 1000 // Now minus a day.

View File

@ -19,12 +19,11 @@
* this source code distribution or the Licensing information page available * this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global define,Promise*/ /*global define*/
define( define(
['./SinewaveConstants', 'moment'], ['./SinewaveConstants', 'moment'],
function (SinewaveConstants, moment) { function (SinewaveConstants, moment) {
"use strict";
var START_TIME = SinewaveConstants.START_TIME, var START_TIME = SinewaveConstants.START_TIME,
FORMAT_REGEX = /^-?\d+:\d+:\d+$/, FORMAT_REGEX = /^-?\d+:\d+:\d+$/,

View File

@ -175,7 +175,7 @@ define(
getPointCount: function () { getPointCount: function () {
return telemetry.length; return telemetry.length;
} }
} };
} }
/** /**
@ -200,8 +200,8 @@ define(
var defaultDomain = (metadata.valuesForHints(['domain'])[0] || {}).key; var defaultDomain = (metadata.valuesForHints(['domain'])[0] || {}).key;
var defaultRange = (metadata.valuesForHints(['range'])[0] || {}).key; var defaultRange = (metadata.valuesForHints(['range'])[0] || {}).key;
var isLegacyProvider = telemetryAPI.findRequestProvider(domainObject) var isLegacyProvider = telemetryAPI.findRequestProvider(domainObject) ===
=== telemetryAPI.legacyProvider; telemetryAPI.legacyProvider;
// Pull out the relevant field from the larger, // Pull out the relevant field from the larger,
// structured response. // structured response.
@ -263,8 +263,8 @@ define(
var defaultDomain = (metadata.valuesForHints(['domain'])[0] || {}).key; var defaultDomain = (metadata.valuesForHints(['domain'])[0] || {}).key;
var defaultRange = (metadata.valuesForHints(['range'])[0] || {}).key; var defaultRange = (metadata.valuesForHints(['range'])[0] || {}).key;
var isLegacyProvider = telemetryAPI.findRequestProvider(domainObject) var isLegacyProvider = telemetryAPI.findRequestProvider(domainObject) ===
=== telemetryAPI.legacyProvider; telemetryAPI.legacyProvider;
function update(telemetry) { function update(telemetry) {
callback(asSeries([telemetry], defaultDomain, defaultRange)); callback(asSeries([telemetry], defaultDomain, defaultRange));

View File

@ -23,7 +23,7 @@
define([ define([
'lodash', 'lodash',
'../../platform/features/conductor/utcTimeSystem/src/UTCTimeSystem', '../../platform/features/conductor/utcTimeSystem/src/UTCTimeSystem',
'./generator/plugin' '../../example/generator/plugin'
], function ( ], function (
_, _,
UTCTimeSystem, UTCTimeSystem,
@ -50,7 +50,7 @@ define([
"implementation": UTCTimeSystem, "implementation": UTCTimeSystem,
"depends": ["$timeout"] "depends": ["$timeout"]
}); });
} };
}; };
plugins.CouchDB = function (url) { plugins.CouchDB = function (url) {
@ -97,5 +97,9 @@ define([
}; };
}; };
plugins.Generator = function () {
return GeneratorPlugin;
};
return plugins; return plugins;
}); });