We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

JS returning error

Questions and answers about Plum Fuse+

Moderators: admin, support

Post Reply
jverweij
Posts: 79
Joined: Thu Apr 27, 2017 11:29 am

JS returning error

Post by jverweij »

We had a working app with JS and made a simple update but are now getting
an unexpected error. Hoping you can help.
We removed a single item (FLU) from the array and now this JS is returning
an error.

Before the update:
Array.prototype.contains = function(obj) { var i = this.length; while (i--)
{ if (this == obj) { return true; } } return false;};arrValues =
['COL', 'AWV2', 'AWV1', 'BCS', 'REDFALLRSK', 'CDCEYE', 'OSTEO',
'RHEUMARTH', 'FLU'];arrValues.contains([current_member_behavior.ukey]);


After the update:
Array.prototype.contains = function(obj) { var i = this.length; while (i--)
{ if (this == obj) { return true; } } return false;};arrValues =
['COL', 'AWV2', 'AWV1', 'BCS', 'REDFALLRSK', 'CDCEYE', 'OSTEO',
'RHEUMARTH'];arrValues.contains([current_member_behavior.ukey]);

Post Reply