From 4b6f12200ee07b48403f7b4a065e30d3634277f7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 20 Apr 2020 23:29:40 +0300 Subject: [PATCH] cleanup and docs... Signed-off-by: Alex A. Naanou --- actions.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/actions.js b/actions.js index 9d74c23..857cf61 100755 --- a/actions.js +++ b/actions.js @@ -13,12 +13,17 @@ var object = require('ig-object') /*********************************************************************/ +// Return value wrapper... +// +// Wrapping a value in this and returning it from an action will force +// the action to return the value as-is... +// This is mainly usefull for specially handled values. var ASIS = module.ASIS = object.Constructor('ASIS', { - __init__: function(obj){ this.value = obj }, -}) + __init__: function(obj){ this.value = obj } }) +// undefined wrapper... var UNDEFINED = module.UNDEFINED = ASIS(undefined)