Fixed JSLint errors

This commit is contained in:
Henry
2015-12-08 14:51:25 -08:00
parent 4fbf547bfc
commit 4b7287e51e
7 changed files with 46 additions and 50 deletions

View File

@@ -44,7 +44,7 @@ define(
function ContextMenuGesture($timeout, $parse, agentService, navigationService, element, domainObject) {
var isPressing,
longTouchTime = 500,
parameters = element && element.attr('parameters') && $parse(element.attr('parameters'))()
parameters = element && element.attr('parameters') && $parse(element.attr('parameters'))();
function suppressMenu(){
return parameters

View File

@@ -72,7 +72,7 @@ define(
function shouldCreateVirtualPanel(domainObject){
return domainObject.useCapability('view').filter(function (view){
return view.key==='plot' && domainObject.getModel().type!== 'telemetry.panel'
return view.key==='plot' && domainObject.getModel().type!== 'telemetry.panel';
}).length > 0;
}
@@ -112,13 +112,13 @@ define(
type = typeService.getType(typeKey),
model = type.getInitialModel(),
id = uuid(),
newPanel = undefined;
newPanel;
model.type = typeKey;
newPanel = new EditableDomainObject(instantiate(model, id), $q);
[base.getId(), overlayId].forEach(function(id){
newPanel.getCapability('composition').add(id)
newPanel.getCapability('composition').add(id);
});
newPanel.getCapability('location').setPrimaryLocation(base.getCapability('location').getContextualLocation());
@@ -146,7 +146,7 @@ define(
// the change.
if (id) {
if (shouldCreateVirtualPanel(domainObject)){
editableDomainObject = createVirtualPanel(domainObject, id)
editableDomainObject = createVirtualPanel(domainObject, id);
navigationService.setNavigation(editableDomainObject);
broadcastDrop(id, event);
} else {