How to extend data recursively with jQuery.data?
<p>I'm looking for a better way to do this:</p>

<pre><code>var extended = $.extend(entity.data('namespace'), {
    att1    : whatever,
    att2    : whatever
});
entity.data('namespace', extended);
</code></pre>

<p>Any suggestions?</p>
