You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
693 B

4 years ago
  1. /*:nodoc:*
  2. * class ActionStoreTrue
  3. *
  4. * This action store the values True respectively.
  5. * This isspecial cases of 'storeConst'
  6. *
  7. * This class inherited from [[Action]]
  8. **/
  9. 'use strict';
  10. var util = require('util');
  11. var ActionStoreConstant = require('./constant');
  12. /*:nodoc:*
  13. * new ActionStoreTrue(options)
  14. * - options (object): options hash see [[Action.new]]
  15. *
  16. **/
  17. var ActionStoreTrue = module.exports = function ActionStoreTrue(options) {
  18. options = options || {};
  19. options.constant = true;
  20. options.defaultValue = options.defaultValue !== null ? options.defaultValue : false;
  21. ActionStoreConstant.call(this, options);
  22. };
  23. util.inherits(ActionStoreTrue, ActionStoreConstant);