victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

Use require to load scripts if in an AMD environment #557

Closed damianfrizzi closed 7 years ago

damianfrizzi commented 7 years ago

Load additional scripts with require if we're in an AMD environment. This fixes https://github.com/victorjonsson/jQuery-Form-Validator/issues/546 and prevents the "mismatched anonymous define() module" error in requirejs when requiring the plugin outside of the normal requirejs environement.

victorjonsson commented 7 years ago

Awesome :1st_place_medal: