ericmbarnard/Knockout-Validation — pull request #122 by kozlowski-mathias (2012-08-29 23:28:52+00:00)
Title: #104 fix

Simply find/replace "ko.validation" by "exports" except for line 21 of course...

I think it could be interesting to remind in documentation that because of AMD concept, when loaded, validation is NOT available through ko.available property but, in case of RequireJS, via module property given by the loader.

For instance :

require(['knockout', 'knockout.validation', 'app/my-vm', 'domReady!'], function(ko, ko_validation, vm_class) {
ko_validation.init();
return ko.applyBindings(new ko.validatedObservable(new vm_class));
});