title: Pass associative array to javascript function in a jquery plugin
body: <p>I am trying to pass associative array to functions in a jquery plugin. Just as the answer from this <a href="https://stackoverflow.com/questions/6888921/pass-associative-array-to-javascript-function">question</a>.</p>
  
  <p>And this is my plugin and how I execute it on dom ready. You can have a look at <a href="http://jsfiddle.net/sKKGQ/" rel="nofollow noreferrer">jsfiddle</a>.</p>
  
  <p>The plugin works fine on firefox only but fails on chrome, opera and safari. I don't understand why!</p>
  
  <p>In chrome, the javascript console says there are two errors in these lines,</p>
  
  <p>an error in the plugin, error message,</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token :</p>
  </blockquote>
  
  <pre><code>// Callback function for proccesing the result.
  $this.get_result = function({object:object,setup:setup,data:xml}) {...
  </code></pre>
  
  <p>and another error in dom ready, </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token {</p>
  </blockquote>
  
  <pre><code>beforeAjax: function({setup:setup,object:form}) {...
  </code></pre>
  
  <p>Can somebody tell me what I have done incorrectly?</p>