akamai/boomerang

What is the use of the last_location function in spa plugin

vkbandi opened this issue · 2 comments

I was going through the spa plugin code and found the last_location function is not called from anywhere else in the codebase, is this code safe to remove, the actual code inside the function also doesn't appear to be doing anything as the lastLocationChange variables that is being updated there is not used anywhere else, am I missing anything, or is this piece of code safe to remove ?

last_location: function(url) {

Hello @vkbandi

It looks like this function was used in older version of Boomerang.

I think that we left this public setter because we didn't want to cause JavaScript errors for the people who were already using it.

I will check with the team and discuss if we need to add better documentation and perhaps a deprecation log message in the Browser's console when this method is being called.

Is it ok, if we close this issue ?