|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
693 bytes
|
| Line | |
|---|
| 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 |
|
|---|
| 11 | var util = require('util');
|
|---|
| 12 |
|
|---|
| 13 | var ActionStoreConstant = require('./constant');
|
|---|
| 14 |
|
|---|
| 15 | /*:nodoc:*
|
|---|
| 16 | * new ActionStoreTrue(options)
|
|---|
| 17 | * - options (object): options hash see [[Action.new]]
|
|---|
| 18 | *
|
|---|
| 19 | **/
|
|---|
| 20 | var ActionStoreTrue = module.exports = function ActionStoreTrue(options) {
|
|---|
| 21 | options = options || {};
|
|---|
| 22 | options.constant = true;
|
|---|
| 23 | options.defaultValue = options.defaultValue !== null ? options.defaultValue : false;
|
|---|
| 24 | ActionStoreConstant.call(this, options);
|
|---|
| 25 | };
|
|---|
| 26 | util.inherits(ActionStoreTrue, ActionStoreConstant);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.