Is there an advantage in how I store my data using jQuery?
<p>I know understand more about how jQuery stores data. </p>

<p>Is there any advantage to doing one or the other of these:</p>

<pre><code>$('#editCity').data('href', "xx");
var a = $('#editCity').data('href');
</code></pre>

<p>or </p>

<pre><code>$('#editCity').attr('data-href', "xx");
var a = $('#editCity').attr('data-href');
</code></pre>

<p>One more related question. </p>

<p>If I have this:</p>

<pre><code>var modal = { x: 'xx', y: 'yy' };
</code></pre>

<p>Can I also store this using .data( .. ) ?</p>
