Is there a way I can get many attributes of an object all at the same time?
<p>I have the following:</p>

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

<p>I am just wondering. Is there a more clean way that I can do this or am I stuck with having to get the attributes like this. </p>
