mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[Code Style] Run gulp fixstyle
...to apply code style settings from #142.
This commit is contained in:
@ -36,10 +36,10 @@ define(
|
||||
}
|
||||
|
||||
EditableRegionPolicy.prototype.allow = function (regionPart, domainObject) {
|
||||
if (!regionPart.modes){
|
||||
if (!regionPart.modes) {
|
||||
return true;
|
||||
}
|
||||
if (domainObject.hasCapability('editor') && domainObject.getCapability('editor').inEditContext()){
|
||||
if (domainObject.hasCapability('editor') && domainObject.getCapability('editor').inEditContext()) {
|
||||
//If the domain object is in edit mode, only include a part
|
||||
// if it is marked editable
|
||||
return regionPart.modes.indexOf('edit') !== -1;
|
||||
@ -52,4 +52,4 @@ define(
|
||||
|
||||
return EditableRegionPolicy;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Reference in New Issue
Block a user