Skip to content

global scope javascript functions such as "remove" #409

@photomedia

Description

@photomedia

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.

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions