Reference another field inside a javascript object
<p>I have an object in javascript: </p>

<pre><code>admins: {
    articles: {
        path: '/admins/articles',
        template: '/views/admins/articles.html',
        link: function() {
            return path;  // !!! how to reference the 'path'?
        }
    }
}
</code></pre>

<p>I have a lot of objects like this, and each of them has a <code>path</code> field and a <code>link</code> function. I want to use the field <code>path</code> in <code>link</code>, but I can't just use <code>path</code>.</p>

<p>What should I do?</p>
