No Description

true.js 692B

1234567891011121314151617181920212223242526
  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);