@@ -28,36 +28,13 @@ define([
28
28
} ,
29
29
30
30
/**
31
- * @param {Integer } id
31
+ * @param {Number } id
32
32
* @returns {* }
33
33
*/
34
34
getLabel : function ( id ) {
35
35
return this . selected . indexOf ( id ) !== - 1 ? $t ( 'On' ) : $t ( 'Off' ) ;
36
36
} ,
37
37
38
- /**
39
- * Initializes components' static properties.
40
- *
41
- * @returns {Column } Chainable.
42
- */
43
- initProperties : function ( ) {
44
- this . actions = [ {
45
- value : 'selectAll' ,
46
- label : $t ( 'Select All' )
47
- } , {
48
- value : 'deselectAll' ,
49
- label : $t ( 'Deselect All' )
50
- } , {
51
- value : 'selectPage' ,
52
- label : $t ( 'Select All on This Page' )
53
- } , {
54
- value : 'deselectPage' ,
55
- label : $t ( 'Deselect All on This Page' )
56
- } ] ;
57
-
58
- return this . _super ( ) ;
59
- } ,
60
-
61
38
/**
62
39
* Sets the ids for preselected elements
63
40
* @returns void
@@ -69,7 +46,7 @@ define([
69
46
70
47
registry . set ( 'position_cache_valid' , true ) ;
71
48
72
- if ( this . selected ( ) . length === this . selectedData . length && positionCacheValid ) {
49
+ if ( this . selectedData . length === 0 || positionCacheValid ) {
73
50
return ;
74
51
}
75
52
// Check selected data
@@ -88,7 +65,7 @@ define([
88
65
89
66
/**
90
67
* Show/hide action in the massaction menu
91
- * @param {Integer } actionId
68
+ * @param {Number } actionId
92
69
* @returns {Boolean }
93
70
*/
94
71
isActionRelevant : function ( actionId ) {
@@ -111,7 +88,7 @@ define([
111
88
* Updates values of the 'allSelected'
112
89
* and 'indetermine' properties.
113
90
*
114
- * @returns {Multiselect } Chainable.
91
+ * @returns {Object } Chainable.
115
92
*/
116
93
updateState : function ( ) {
117
94
var totalRecords = this . totalRecords ( ) ,
0 commit comments