From aa336dfd57932ccf658181f5460127aaa313fc6b Mon Sep 17 00:00:00 2001 From: Deep Tailor Date: Tue, 29 Aug 2017 10:45:41 -0700 Subject: [PATCH] fix gulp checkstyle errors --- .../general/src/directives/MCTSplitPane.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform/commonUI/general/src/directives/MCTSplitPane.js b/platform/commonUI/general/src/directives/MCTSplitPane.js index 00daca64d7..cb845ed1bd 100644 --- a/platform/commonUI/general/src/directives/MCTSplitPane.js +++ b/platform/commonUI/general/src/directives/MCTSplitPane.js @@ -100,7 +100,7 @@ define( anchor, activeInterval, position, - splitterSize, + splitterSize, alias = $attrs.alias !== undefined ? "mctSplitPane-" + $attrs.alias : undefined, @@ -108,7 +108,7 @@ define( //convert string to number from localStorage userWidthPreference = $window.localStorage.getItem(alias) === null ? undefined : Number($window.localStorage.getItem(alias)); - + // Get relevant size (height or width) of DOM element function getSize(domElement) { return (anchor.orientation === 'vertical' ? @@ -119,8 +119,8 @@ define( function updateChildren(children) { if (alias) { position = userWidthPreference || position; - } - + } + // Pick out correct elements to update, flowing from // selected anchor edge. var first = children.eq(anchor.reversed ? 2 : 0), @@ -175,7 +175,7 @@ define( if (positionParsed.assign) { positionParsed.assign($scope, position); } - } + } return position; } @@ -221,7 +221,7 @@ define( $scope.$on('$destroy', function () { $interval.cancel(activeInterval); }); - + // Interface exposed by controller, for mct-splitter to user return { @@ -229,7 +229,7 @@ define( return anchor; }, position: function (initialValue, newValue) { - if(arguments.length === 0){ + if (arguments.length === 0) { return getSetPosition(); } if (initialValue !== newValue) { @@ -257,4 +257,4 @@ define( return MCTSplitPane; } -); \ No newline at end of file +);