[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

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

View File

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