Javascript: Get Name of Current Object Property in Object Literal
<p>File this one under "just curious" or "is it possible?"</p>

<p>Say for example I have...</p>

<pre><code>home: function(options) {
   this._home('home', options)
}

login: function(options) {
    this._home('login', options)
}
</code></pre>

<p><code>home</code> and <code>login</code> are obviously identifiers on dozens of object properties for tracking purposes. Is there a way to just return <code>home</code> or <code>login</code> without using any variables (an external function call is fine) within the object property?</p>

<p><strong>UPDATE:</strong> Turns out this isn't possible. The accepted answer doesn't exactly answer the question, but it is a wonderful example of simplifying numerous calls to the same property.</p>
