title: Creating functions from strings with events
body: <p>I have the following function that should create a function from a String with event -</p>
  <pre><code>function getFuncDefEvent(jsFunctionString){
      if(jsFunctionString!= undefined) {
          return function(event){jsFunctionString};
      }
  }
  </code></pre>
  <p>this would be an example of a function string :</p>
  <pre><code> jsFunctionString = &quot;doSomething(event); doSomethingElse();
  </code></pre>
  <p>I've attached it to a <code>onclick</code> event however it doesn't seem to fire any of the events. Am I missing something?</p>