File tree Expand file tree Collapse file tree
src/components/views/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,9 +331,9 @@ module.exports = React.createClass({
331331 }
332332 } ,
333333
334- // Determine whether a rule is in the PushRuleVectorState.ON category or in PushRuleVectorState.LOUD
335- // regardless of its enabled state.
336- _pushRuleVectorStateKind : function ( rule ) {
334+ // Determine whether a content rule is in the PushRuleVectorState.ON category or in PushRuleVectorState.LOUD
335+ // regardless of its enabled state. Returns undefined if it does not match these categories.
336+ _contentRuleVectorStateKind : function ( rule ) {
337337 var stateKind ;
338338
339339 // Count tweaks to determine if it is a ON or LOUD rule
@@ -533,7 +533,7 @@ module.exports = React.createClass({
533533 // when creating the new rule.
534534 // Thus, this new rule will join the 'vectorContentRules' set.
535535 if ( self . state . vectorContentRules . rules . length ) {
536- pushRuleVectorStateKind = self . _pushRuleVectorStateKind ( self . state . vectorContentRules . rules [ 0 ] ) ;
536+ pushRuleVectorStateKind = self . _contentRuleVectorStateKind ( self . state . vectorContentRules . rules [ 0 ] ) ;
537537 }
538538 else {
539539 // ON is default
@@ -657,7 +657,7 @@ module.exports = React.createClass({
657657 vectorOverridingRules [ r . rule_id ] = r ;
658658 }
659659 else if ( kind === 'content' ) {
660- switch ( self . _pushRuleVectorStateKind ( r ) ) {
660+ switch ( self . _contentRuleVectorStateKind ( r ) ) {
661661 case PushRuleVectorState . ON :
662662 if ( r . enabled ) {
663663 contentRules . on . push ( r ) ;
You can’t perform that action at this time.
0 commit comments