Question & Answer
Question
On browsers, the behavior of javascript function Array.splice() is as follows. This function changes source array variable and returns new array of removed elements. Example: var src = ['a','b','c'] var res = src.splice(2,1,'d') Result: src => ['a','b','d'] res => ['c'] However, on ISIM 5.1/6.0/7.0, source array is not changed and it returns result of operation. Result on ISIM 5.1/6.0/7.0 src => not changed res => ['a','b','d']
Answer
This is caused by difference of javascript engine. And, this can not be fixed in current release.
So, we recommend not to use splice function to manipulate array.
Of course, the customer can use splice function as current ISIM 5.1/6.0/7.0 behavior. However, he has to know the possibility that the behavior of splice function will be changed in future release.
Was this topic helpful?
Document Information
Modified date:
25 June 2018
UID
swg21680209