Skip to content

Change document ready for compatibility mode with other libraries#46

Open
bijsterdee wants to merge 1 commit intoboekkooi:masterfrom
bijsterdee:master
Open

Change document ready for compatibility mode with other libraries#46
bijsterdee wants to merge 1 commit intoboekkooi:masterfrom
bijsterdee:master

Conversation

@bijsterdee
Copy link
Copy Markdown

When using different libraries, the generated script can trigger the error "jquery.validate is not a function" in some scenarios.

By changing (function($){})(jQuery) to jQuery(function($){}), the problem is corrected.

Affected version:
jquery version: v3.1.1
jquery validation plugin: v1.16.0

  • Checked if jQuery library was loaded only 1 time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant