[Build] Satisfy JSHint

Restore globals lost during removal due to merge, remove unused
variables and use threequals in new scripts.
This commit is contained in:
Victor Woeltjen 2016-04-08 16:22:28 -07:00
parent 5088453712
commit 0b11ddbcfd
14 changed files with 15 additions and 8 deletions

View File

@ -19,6 +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,describe,beforeEach,jasmine,it,expect*/
define([ define([
'../../src/ui/TreeView', '../../src/ui/TreeView',
@ -122,7 +123,7 @@ define([
function waitForCompositionCallback() { function waitForCompositionCallback() {
var calledBack = false; var calledBack = false;
testCapabilities.composition.invoke().then(function (c) { testCapabilities.composition.invoke().then(function () {
calledBack = true; calledBack = true;
}); });
waitsFor(function () { waitsFor(function () {

View File

@ -130,7 +130,6 @@ define(
domainObject = this.domainObject, domainObject = this.domainObject,
model = domainObject.getModel(), model = domainObject.getModel(),
modified = model.modified, modified = model.modified,
cacheService = this.cacheService,
persistenceService = this.persistenceService, persistenceService = this.persistenceService,
persistenceFn = model.persisted !== undefined ? persistenceFn = model.persisted !== undefined ?
this.persistenceService.updateObject : this.persistenceService.updateObject :

View File

@ -19,6 +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 spyOn*/
define( define(
function () { function () {

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global jasmine*/
define( define(
function () { function () {

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global jasmine*/
define( define(
function () { function () {

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global jasmine*/
define( define(
[ [
'../ControlledPromise' '../ControlledPromise'

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global jasmine*/
define( define(
function () { function () {

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global spyOn*/
define( define(
["../src/TimeConductor"], ["../src/TimeConductor"],
function (TimeConductor) { function (TimeConductor) {

View File

@ -118,7 +118,7 @@ define(
// Do a sequential search here. Only way of finding row is by // Do a sequential search here. Only way of finding row is by
// object equality, so array is in effect unsorted. // object equality, so array is in effect unsorted.
indexInDisplayRows = this.$scope.displayRows.indexOf(row); indexInDisplayRows = this.$scope.displayRows.indexOf(row);
if (indexInDisplayRows != -1) { if (indexInDisplayRows !== -1) {
this.$scope.displayRows.splice(indexInDisplayRows, 1); this.$scope.displayRows.splice(indexInDisplayRows, 1);
this.setVisibleRows(); this.setVisibleRows();
} }
@ -160,7 +160,7 @@ define(
if (this.$scope.displayRows.length < this.maxDisplayRows) { if (this.$scope.displayRows.length < this.maxDisplayRows) {
//Check whether need to resynchronize visible with display //Check whether need to resynchronize visible with display
// rows (if data added) // rows (if data added)
if (this.$scope.visibleRows.length != if (this.$scope.visibleRows.length !==
this.$scope.displayRows.length){ this.$scope.displayRows.length){
start = 0; start = 0;
end = this.$scope.displayRows.length; end = this.$scope.displayRows.length;
@ -247,8 +247,7 @@ define(
* for individual rows. * for individual rows.
*/ */
MCTTableController.prototype.setElementSizes = function () { MCTTableController.prototype.setElementSizes = function () {
var self = this, var thead = this.element.find('thead'),
thead = this.element.find('thead'),
tbody = this.element.find('tbody'), tbody = this.element.find('tbody'),
firstRow = tbody.find('tr'), firstRow = tbody.find('tr'),
column = firstRow.find('td'), column = firstRow.find('td'),

View File

@ -108,8 +108,6 @@ define(
only). only).
*/ */
TelemetryTableController.prototype.subscribe = function () { TelemetryTableController.prototype.subscribe = function () {
var self = this;
if (this.handle) { if (this.handle) {
this.handle.unsubscribe(); this.handle.unsubscribe();
} }

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global window,requirejs*/
define([ define([
'require', 'require',

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global window,requirejs*/
/** /**
* Implements the framework layer, which handles the loading of bundles * Implements the framework layer, which handles the loading of bundles

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global self*/
/** /**
* Module defining GenericSearchWorker. Created by shale on 07/21/2015. * Module defining GenericSearchWorker. Created by shale on 07/21/2015.

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*global require*/
/** /**
* SearchSpec. Created by shale on 07/31/2015. * SearchSpec. Created by shale on 07/31/2015.