I have the following:
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')
};
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.