code: function () {
              /*  determine parameters  */
              var params = $cs.params("state", arguments, {
                  state: { pos: 0, req: true,
                           valid: function (s) { return _cs.state_name2idx(s) !== -1; } }
              });
  
              /*  determine index of state by name  */
              var state = _cs.state_name2idx(params.state);
  
              /*  compare given state against state of component  */
              return (this.__state - state);
          }
docs: /*  compare state of component