Adding Methods on the Fly to Object
<p>I hope this can be done in Javascript.</p>

<blockquote>
  <p>I Have something like this:</p>
</blockquote>

<p>have something like this:</p>

<pre><code>var MYOBJECT = {
method1: function(){//some cool},
addMethodToObject: function (a_new_method){
//whats need to be here to add the
 method passed in "a_new_method" to MYOBJECT ?
}

}
</code></pre>

<p>The idea is to call:</p>

<pre><code>MYOBJECT.addMethodToObject(function otherMethod(needThis){return needThis;});
</code></pre>

<p>and now MYOBJECT has the Method passed as a new Method, and I can do something like this:</p>

<pre><code>MYOBJECT.otherMethod('say Hi');
</code></pre>

<p>will output</p>

<blockquote>
  <p>"say Hi"</p>
</blockquote>

<p>Thanks in advance.</p>
