Does javascript have a shorthand way of setting up fields in an object?
<p>I am using the following:</p>

<pre><code>var link = {};
link.action = $link.attr('data-action') || '';
link.dialogType = $link.attr('data-dialogType') || '';
link.params = $link.attr('data-params') || '';
link.title = $link.attr('title') || '';
link.viewURL = $link.attr('data-href') || '';
link.entity = $link.attr('data-entity') || '';
link.row = $link.attr('data-row');
</code></pre>

<p>But is there a better way to do this?</p>
