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.

27 lines
704 B

4 years ago
  1. /*:nodoc:*
  2. * class ActionStoreFalse
  3. *
  4. * This action store the values False respectively.
  5. * This is special 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 ActionStoreFalse(options)
  14. * - options (object): hash of options see [[Action.new]]
  15. *
  16. **/
  17. var ActionStoreFalse = module.exports = function ActionStoreFalse(options) {
  18. options = options || {};
  19. options.constant = false;
  20. options.defaultValue = options.defaultValue !== null ? options.defaultValue : true;
  21. ActionStoreConstant.call(this, options);
  22. };
  23. util.inherits(ActionStoreFalse, ActionStoreConstant);