|
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:
704 bytes
|
| Line | |
|---|
| 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 |
|
|---|
| 10 | 'use strict';
|
|---|
| 11 |
|
|---|
| 12 | var util = require('util');
|
|---|
| 13 |
|
|---|
| 14 | var ActionStoreConstant = require('./constant');
|
|---|
| 15 |
|
|---|
| 16 | /*:nodoc:*
|
|---|
| 17 | * new ActionStoreFalse(options)
|
|---|
| 18 | * - options (object): hash of options see [[Action.new]]
|
|---|
| 19 | *
|
|---|
| 20 | **/
|
|---|
| 21 | var ActionStoreFalse = module.exports = function ActionStoreFalse(options) {
|
|---|
| 22 | options = options || {};
|
|---|
| 23 | options.constant = false;
|
|---|
| 24 | options.defaultValue = options.defaultValue !== null ? options.defaultValue : true;
|
|---|
| 25 | ActionStoreConstant.call(this, options);
|
|---|
| 26 | };
|
|---|
| 27 | util.inherits(ActionStoreFalse, ActionStoreConstant);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.