I recently encountered an issue of compatibility with other plugins due to the fact that prototype is defining functions like "remove" at the global scope.
|
function remove(element) { |
This causes problems when others also define a function like "remove". I am referring specifically to this as an example:
https://trustcassie.com/
which is used in my institution for cookie permissions handling. Overall, I think that a best practice would be to contain function names like "remove" within a scope, or at least use names with a prefix or something like that. That goes for the third-party apps too, obviously, but I can't control what they do.
I recently encountered an issue of compatibility with other plugins due to the fact that prototype is defining functions like "remove" at the global scope.
eprints3.4/ingredients/prototypejs/static/javascript/auto/20_prototype.js
Line 2174 in 2467b68
This causes problems when others also define a function like "remove". I am referring specifically to this as an example:
https://trustcassie.com/
which is used in my institution for cookie permissions handling. Overall, I think that a best practice would be to contain function names like "remove" within a scope, or at least use names with a prefix or something like that. That goes for the third-party apps too, obviously, but I can't control what they do.