title: Custom Binding Handlers With Knockout and RequireJS
body: <p>I'm having an issue applying custom binding handlers when using knockout with requireJS. Basically, in the past I've included a global binding-handler js file that contains all my custom bindings. Now that I'm using requireJS to enforce dependencies, I'm not sure how to access these custom bindings.</p>
  
  <p>I used to do create the global functions with </p>
  
  <pre><code>function KOCustomBindings() {
  // Custom Bindings
  ko.bindingHandlers.returnKey = {
  //handler code
  }
  }
  </code></pre>
  
  <p>Now that I'm using require, I feel as if I should have a define statement</p>
  
  <pre><code>define(['jquery', 'knockout'],
      function($, ko)){
  // Custom Bindings
  return KOCustomBindings;
  }
  });
  </code></pre>
  
  <p>However, I don't believe the bindings will execute unless specifically called, perhaps in a shim? Does anyone have any ideas on this? </p>
  
  <p>Thanks for your help,</p>