I have the following javascript code:
var oLink = {
title: $link.attr('title') || '',
row: $link.attr('data-row') || ''
}
Is it possible to add another field once these fields have already been defined so as to achieve:
var oLink = {
viewUrl: $link.attr('data-href') || '',
title: $link.attr('title') || '',
row: $link.attr('data-row') || ''
}
Always.
There is practically never a time that this wouldn’t work.
Now you’ve got: