"Pull apart" Javascript objects within function returns
<p>I'm working with a jQuery plugin which has methods which return objects. I'm a little shaky on my terminology here, so I'll try to demonstrate:</p>

<pre><code>$(this).myplugin({
    mouseMove: function(data){
        //Do something
    }
});
</code></pre>

<p>"Data" in this case would be an object that returns info about the position of the mouse. I'm used to working with a language in which I can rip data structures apart, i.e. write:</p>

<pre><code>mouseMove: function({x,y})
</code></pre>

<p>This actually seems to work in Firefox (I can go on to use the variables x and y just fine), but breaks my script in Chrome.</p>

<p>Do I have to use <code>data['x']</code> and <code>data['y']</code> everytime I want to access these, or is there an easier way?</p>
