Why this class does not return false|| true?
<p>I have this class</p>

<pre><code>Class.V = function(v) {
    if (v.BooleanValue == true) {
        v.Success();
    } else {
        v.Fail();
    }

    return Class;
}
</code></pre>

<p>And i have a button which will execute a function that will returns true or false to procede or not with the form.</p>

<pre><code>&lt;input type="submit" onclick="return check()" Value="Check" /&gt;


function check() {
    Class.V({
        BooleanValue: true,
        Success: function() {
            return true;
        },
        Fail: function() {
            return false;
        }
    })
</code></pre>

<p>But it doest work. This work instead:</p>

<pre><code>function check() {
    Class.V({
        o: true,
        Success: function() {
            results = true;
        },
        Fail: function() {
            results = false;
        }
        return results;
        //now works as expected
        })
</code></pre>

<p>Why this happen?</p>
