Skip to content

Commit 08c61ac

Browse files
committed
MAGETWO-81311: Refactor split onto previous line per comment feedback. scope variable is not used anywhere else except on the next line. Issue: 9944
1 parent 1951f07 commit 08c61ac

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+2
-2
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/abstract.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ define([
118118

119119
this._super();
120120

121-
scope = this.dataScope;
122-
name = scope.split('.').length > 1 ? scope.split('.').slice(1) : scope.split('.');
121+
scope = this.dataScope.split('.');
122+
name = scope.length > 1 ? scope.slice(1) : scope;
123123

124124
valueUpdate = this.showFallbackReset ? 'afterkeydown' : this.valueUpdate;
125125

0 commit comments

Comments
 (0)