object *name* has no method *method name*
<p>I have two objects: <code>command</code> and <code>topic</code>.</p>

<p><code>topic</code> has a method <code>actions</code> that is called from <code>command</code>. </p>

<p>When <code>topic.actions()</code> is called, there are no errors.  </p>

<p>When I use the object property <code>command.taxonomy</code> whose value is the string <code>'topic'</code> to call <code>topic.actions()</code>, an exception is thrown: <code>"Object topic has no method actions"</code>.  </p>

<p><strong>Why would the console report <code>topic</code> has no method <code>actions</code> when it is right there?</strong></p>

<pre><code>command = {
    /*this is set when an html element is clicked by another function:
        for this example, it equals the string 'topic'*/
    taxonomy : '',

    //this is called when the same html element is clicked as above
    taxonomy_actions: function(){
        this.taxonomy.actions();
    }
}

topic = {
    actions:function(){
        //returns an array of valid commands for topic
        this.commands.push('shortcuts');
        this.commands.push('action_list');
        this.commands['shortcuts'] = new Array();
        this.commands['action_list'] = new Array();

        for(x in this.aliases){
                this.commands.action_list.push(this.aliases[x]);
                this.commands.shortcuts.push(x);
        }   
        return this.commands;
    }
}
</code></pre>
