maqetta/maqetta — comment on commit 84704239a84dcc3862bbc8937b1a55671ca81f67
File: maqetta.core.client/WebContent/davinci/Runtime.js line 84
By childsb:

People were using location.href in quite a few spots and not taking into account URL parameters, port, etc.. Instead of copying/pasting these 4 lines in all those spots, i just abstracted it to a method. That way people wouldn't have to think about URL parameters and I wouldn't have to search the code base for every spot using the current URL if query parameters or other URL modifications were introduced. Its a valid consolidation of code both to eliminate redundancy and to aid in debugging...