I am trying to load content via AJAX calls which may include Javascript and its settings. This works more or less, but I cannot make sure whether a certain javascript code has been inserted and executed before. Now I need to find out, whether in case of problems resulting from a modules javascript code being executed multiple times, I would need to fix the modules javascript or whether I would have to take other precautions.
My question: Given Drupal's coding standards for Javascript added by modules, should it be unproblematic to execute it multiple times? I am aware of some modules where the javascript part is badly coded and problems will result, I just want to know whether this is allowed by some Drupal javascript standards (if any exist)