title: Can I add a method to a requirejs module used as dependency in another module and have it available every time the module is loaded as dependency?
body: <p>If I have a module like this:</p>
  
  <pre><code>define([
     'app'
    , 'text!index.html!strip'
    , 'css!index'
    ],
    function (App, source) {
      var response = {};
  
      App.newMethod = function (foo) {
        console.log("foo ="+foo);
      };
  
    // return response object
    return response;
    }
  );
  </code></pre>
  
  <p>I'm wondering how to add methods to a module that is used as a dependency in another module. Sure I can add methods to the object, but will these also update the <code>App</code> object when it is called from another module?</p>
  
  <p><strong>Question</strong>:<br>
  Is there a way to add methods to a module, which is loaded as a dependency and have these methods available on all modules, which require this dependency?</p>