Main functions and classes of the FCF framework
Révision | 299d045a30adf7ca072bcee692dc5156c212f8d1 (tree) |
---|---|
l'heure | 2022-12-07 14:47:31 |
Auteur | vmarkin |
Commiter | vmarkin |
And the fcf.Actions.options method is added
@@ -1805,7 +1805,7 @@ | ||
1805 | 1805 | |
1806 | 1806 | /// @method fcf.Actions result(object a_options) |
1807 | 1807 | /// @brief Sets the options of the fcf.Actions object |
1808 | - /// @param object a_options - Object options: | |
1808 | + /// @param object a_options - An options object that can store the following options: | |
1809 | 1809 | /// - boolean deferred - If the flag is true, then the added callbacks will not be executed |
1810 | 1810 | /// until the fcf.Actions.startup() method is called. |
1811 | 1811 | /// - boolean noexcept - If the flag is true, then if the callback ends with an error, |
@@ -1816,9 +1816,9 @@ | ||
1816 | 1816 | options(a_options) { |
1817 | 1817 | if (!arguments.length){ |
1818 | 1818 | return { |
1819 | - noexcept: this._flags & ACTIONS_FLAGS_NOEXCEPT, | |
1820 | - quiet: this._flags & ACTIONS_FLAGS_QUIET, | |
1821 | - deferred: this._flags & ACTIONS_FLAGS_DEFERRED, | |
1819 | + noexcept: this._flags & ACTIONS_FLAGS_NOEXCEPT ? true : false, | |
1820 | + quiet: this._flags & ACTIONS_FLAGS_QUIET ? true : false, | |
1821 | + deferred: this._flags & ACTIONS_FLAGS_DEFERRED ? true : false, | |
1822 | 1822 | errorResult: this._errorResult |
1823 | 1823 | }; |
1824 | 1824 | } else { |