Fix handling of missing ID (usually from empty placeholder)

This commit is contained in:
Nathan Gray 2014-09-01 16:53:59 +00:00
parent fa8861ef38
commit 3a49e4cfec

View File

@ -56,13 +56,13 @@ function nm_action(_action, _senders, _target, _ids)
var idsArr = _ids.ids;
for (var i = 0; i < idsArr.length; i++)
{
idsArr[i] = idsArr[i].split("::").pop();
// empty placeholder gets reported --> ignore it
if (!idsArr[i])
{
delete idsArr[i];
i--;
idsArr.splice(i,1);
continue;
}
idsArr[i] = idsArr[i].split("::").pop();
}
// Calculate the ids parameters