mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 08:03:49 +00:00
[Build] Remove unused variables
...to satisfy JSHint
This commit is contained in:
@ -53,8 +53,7 @@ define(
|
||||
* @param {ViewDefinition[]} views an array of view extensions
|
||||
*/
|
||||
function MCTRepresentation(representations, views, representers, $q, templateLinker, $log) {
|
||||
var representationMap = {},
|
||||
gestureMap = {};
|
||||
var representationMap = {};
|
||||
|
||||
// Assemble all representations and views
|
||||
// The distinction between views and representations is
|
||||
@ -82,7 +81,7 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
function link($scope, element, attrs, ctrl, transclude) {
|
||||
function link($scope, element, attrs) {
|
||||
var activeRepresenters = representers.map(function (Representer) {
|
||||
return new Representer($scope, element, attrs);
|
||||
}),
|
||||
|
@ -31,7 +31,7 @@ define(
|
||||
* @param {...Array.<{templateUrl: string}>} extensions arrays
|
||||
* of template or template-like extensions
|
||||
*/
|
||||
function TemplatePrefetcher(templateLinker, extensions) {
|
||||
function TemplatePrefetcher(templateLinker) {
|
||||
Array.prototype.slice.apply(arguments, [1])
|
||||
.reduce(function (a, b) {
|
||||
return a.concat(b);
|
||||
|
@ -91,7 +91,7 @@ define(
|
||||
});
|
||||
|
||||
// Whenever the touch event ends, 'isPressing' is false.
|
||||
element.on('touchend', function (event) {
|
||||
element.on('touchend', function () {
|
||||
isPressing = false;
|
||||
});
|
||||
}
|
||||
|
@ -71,13 +71,6 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
function canCompose(domainObject, selectedObject){
|
||||
return domainObject.getCapability("action").getActions({
|
||||
key: 'compose',
|
||||
selectedObject: selectedObject
|
||||
}).length > 0;
|
||||
}
|
||||
|
||||
function dragOver(e) {
|
||||
//Refresh domain object on each dragOver to catch external
|
||||
// updates to the model
|
||||
@ -121,7 +114,7 @@ define(
|
||||
// destination domain object's composition, and persist
|
||||
// the change.
|
||||
if (id) {
|
||||
$q.when(action && action.perform()).then(function (result) {
|
||||
$q.when(action && action.perform()).then(function () {
|
||||
//Don't go into edit mode for folders
|
||||
if (domainObjectType!=='folder') {
|
||||
editableDomainObject.getCapability('action').perform('edit');
|
||||
|
Reference in New Issue
Block a user