I like to ask if this minification of names is possible ether with some kind of switch, ether with some kind of variable encoding.
Now if I have this:
function OriCar(UseA, UseB)
{
this.OneVariable = UseA;
this.TwoVariable = UseB;
this.FunctionName = function(variableA)
{
this.OneVariable = variableA;
this.TwoVariable = variableA;
}
}
Correct minified to this:
function OriCar(a, b)
{
this.OneVariable = a;
this.TwoVariable = b;
this.FunctionName = function(c)
{
this.OneVariable = c;
this.TwoVariable = c;
}
}
But it is possible to get this results (with also some of the inside variables minified (shorted names) if I am not use them out side ?:
function OriCar(a, b)
{
// select this to minified
this.a1 = a;
// and not this
this.TwoVariable = b;
this.FunctionName = function(c)
{
this.a1 = c;
this.TwoVariable = c;
}
}
or to this:
function OriCar(a, b)
{
this.a1 = a;
this.b1 = b;
this.FunctionName = function(c)
{
this.a1 = c;
this.b1 = c;
}
}
