mirror of
https://github.com/nasa/openmct.git
synced 2024-12-28 08:58:52 +00:00
fix gulp checkstyle errors
This commit is contained in:
parent
556296096d
commit
aa336dfd57
@ -100,7 +100,7 @@ define(
|
|||||||
anchor,
|
anchor,
|
||||||
activeInterval,
|
activeInterval,
|
||||||
position,
|
position,
|
||||||
splitterSize,
|
splitterSize,
|
||||||
|
|
||||||
alias = $attrs.alias !== undefined ?
|
alias = $attrs.alias !== undefined ?
|
||||||
"mctSplitPane-" + $attrs.alias : undefined,
|
"mctSplitPane-" + $attrs.alias : undefined,
|
||||||
@ -108,7 +108,7 @@ define(
|
|||||||
//convert string to number from localStorage
|
//convert string to number from localStorage
|
||||||
userWidthPreference = $window.localStorage.getItem(alias) === null ?
|
userWidthPreference = $window.localStorage.getItem(alias) === null ?
|
||||||
undefined : Number($window.localStorage.getItem(alias));
|
undefined : Number($window.localStorage.getItem(alias));
|
||||||
|
|
||||||
// Get relevant size (height or width) of DOM element
|
// Get relevant size (height or width) of DOM element
|
||||||
function getSize(domElement) {
|
function getSize(domElement) {
|
||||||
return (anchor.orientation === 'vertical' ?
|
return (anchor.orientation === 'vertical' ?
|
||||||
@ -119,8 +119,8 @@ define(
|
|||||||
function updateChildren(children) {
|
function updateChildren(children) {
|
||||||
if (alias) {
|
if (alias) {
|
||||||
position = userWidthPreference || position;
|
position = userWidthPreference || position;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pick out correct elements to update, flowing from
|
// Pick out correct elements to update, flowing from
|
||||||
// selected anchor edge.
|
// selected anchor edge.
|
||||||
var first = children.eq(anchor.reversed ? 2 : 0),
|
var first = children.eq(anchor.reversed ? 2 : 0),
|
||||||
@ -175,7 +175,7 @@ define(
|
|||||||
if (positionParsed.assign) {
|
if (positionParsed.assign) {
|
||||||
positionParsed.assign($scope, position);
|
positionParsed.assign($scope, position);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
@ -221,7 +221,7 @@ define(
|
|||||||
$scope.$on('$destroy', function () {
|
$scope.$on('$destroy', function () {
|
||||||
$interval.cancel(activeInterval);
|
$interval.cancel(activeInterval);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Interface exposed by controller, for mct-splitter to user
|
// Interface exposed by controller, for mct-splitter to user
|
||||||
return {
|
return {
|
||||||
@ -229,7 +229,7 @@ define(
|
|||||||
return anchor;
|
return anchor;
|
||||||
},
|
},
|
||||||
position: function (initialValue, newValue) {
|
position: function (initialValue, newValue) {
|
||||||
if(arguments.length === 0){
|
if (arguments.length === 0) {
|
||||||
return getSetPosition();
|
return getSetPosition();
|
||||||
}
|
}
|
||||||
if (initialValue !== newValue) {
|
if (initialValue !== newValue) {
|
||||||
@ -257,4 +257,4 @@ define(
|
|||||||
return MCTSplitPane;
|
return MCTSplitPane;
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user