Get the reference name of an object?
<p>I have an object inside another object:</p>

<pre><code>function TextInput() {
    this.east = "";
    this.west = "";
}

TextInput.prototype.eastConnect = function(object) {
    this.east = object;
    object.west = this;
}

textInput1 = new TextInput();
textInput2 = new TextInput();

textInput1.eastConnect(textInput2);

puts(textInput1.east.name) // this gives undefined.
</code></pre>

<p>In the last statement I want to print out the object's reference name, in this case: textInput2.</p>

<p>How do I do that?</p>
