File tree 1 file changed +10
-4
lines changed
app/code/Magento/Ui/view/base/web/js/form/element
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,24 @@ define([
10
10
11
11
return Select . extend ( {
12
12
defaults : {
13
- size : 5
13
+ size : 5
14
14
} ,
15
15
16
+ /**
17
+ * Calls 'getInitialValue' of parent and if the result of it is not empty
18
+ * string, returs it, else returnes caption or first found option's value
19
+ *
20
+ * @returns {Number|String }
21
+ */
16
22
getInititalValue : function ( ) {
17
- var value = __super__ . getInititalValue . apply ( this , arguments ) ;
23
+ var value = this . _super ( ) ;
18
24
19
25
return _ . isString ( value ) ? value . split ( ',' ) : value ;
20
26
} ,
21
27
22
28
/**
23
29
* Defines if value has changed
24
- * @return {Boolean }
30
+ * @returns {Boolean }
25
31
*/
26
32
hasChanged : function ( ) {
27
33
var value = this . value ( ) ,
@@ -30,4 +36,4 @@ define([
30
36
return ! utils . identical ( value , initial ) ;
31
37
}
32
38
} ) ;
33
- } ) ;
39
+ } ) ;
You can’t perform that action at this time.
0 commit comments