ericmbarnard/Knockout-Validation — pull request #126 by fazzamar (2012-09-04 18:24:55+00:00)
Title: Adds ability to disable a rule on an observable

In response to Issue 111 (https://github.com/ericmbarnard/Knockout-Validation/issues/111).
Adds the ability to disable a rule temporarily.
Examples:
Using the following view model...
ViewModel = { Name = ko.observable().extend({ required:true }); };

Disabling a rule can be accomplished a variety of ways...
ViewModel.Name.rules()[0].enabled = false;
ViewModel.Name.rules()[0].disabled = true;
ko.utils.arrayForEach(ViewModel.Name.rules(), function(rule) {
if (rule.rule == 'required')
rule.endabled = false;
});