Page 1 of 1

JS returning error

Posted: Mon Jul 17, 2017 1:55 pm
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]);