Sorry for the strange name ... not sure how else to find out about a language feature like this.
I read about module templates when I came across this example, when I came across this line of code. This happens in closing for an example module template for saving private state in different files, when the module “weakly supplements”.
EDIT - Included the rest of the module code
var MODULE = (function (my) {
var _private = my._private = my._private || {},
_seal = my._seal = my._seal || function () {
delete my._private;
delete my._seal;
delete my._unseal;
},
_unseal = my._unseal = my._unseal || function () {
my._private = _private;
my._seal = _seal;
my._unseal = _unseal;
};
return my;
}(MODULE || {}));
I tried to break it, but it does not add up.
. beore var someVar = something || somethingElse, , - (false, null ..), (, ).
, . , my._private , ... .
my._private ?