DiegoLopesLima / validate

A simple jQuery plugin to validate forms.
301 stars 217 forks source link

Modified 'defaults' parameter object to explicitly reference 'jQuery' in... #43

Closed chrisfrancis27 closed 11 years ago

chrisfrancis27 commented 11 years ago

Modified 'defaults' parameter object to explicitly reference 'jQuery' instead of '$' to prevent errors with jQuery.noConflict(), where '$' may not be defined on the window object. For instance, in my projects I use an AMD wrapper around jQuery.noConflict() which never exports '$' to global scope, so this plugin didn't work inside my requireJS modules until I changed the references to 'jQuery'. Hope that makes sense! :)

DiegoLopesLima commented 11 years ago

Hi @chrisfrancis27! On the current development version this already has been corrected. You can see this on here. Very thanks for your help!