Skip to main content

Bug Tracker

Side navigation

Ticket #2928: jquery.validate.patch
File jquery.validate.patch, 0.4 KB (added by duzk, May 23, 2008 02:01PM UTC)
465c465,466
< 				var rule = { method: method, parameters: rules[method] };
---
> 				var parameters = jQuery.isFunction(rules[method]) ? rules[method](element) : rules[method];
> 				var rule = { method: method, parameters: parameters };
801,805d801
< 		});
< 		
< 		// evaluate parameters
< 		jQuery.each(rules, function(rule, parameter) {
< 			rules[rule] = jQuery.isFunction(parameter) ? parameter(element) : parameter;

Download in other formats:

Original Format