Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where plugin isn't available via AMD or CommonJS module loaders. #99

Merged
merged 1 commit into from
Dec 8, 2016

Conversation

kevinsmith
Copy link
Contributor

First, thank you for your work on this plugin!

The problem: The plugin wasn't being exposed from the factory, so the AMD and CommonJS parts of the UMD weren't actually exporting anything usable for any application using either of those loaders.

The fix: Return the entire plugin to make it available to AMD and CommonJS module loaders. This is in line with the common UMD pattern, and does not break compatibility with the typical global variable definition.

See the "exposed public method" comment in this UMD explanation for a simplified version of what was added here.

@robflaherty robflaherty merged commit 25b4da3 into robflaherty:master Dec 8, 2016
@robflaherty
Copy link
Owner

@kevinsmith thank you for catching this.... and thanks for such a well described PR! 👏

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.

2 participants