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

Export v4 Util class to make it usable in custom JS functions #18413

Closed
wasinger opened this issue Dec 3, 2015 · 1 comment
Closed

Export v4 Util class to make it usable in custom JS functions #18413

wasinger opened this issue Dec 3, 2015 · 1 comment
Labels

Comments

@wasinger
Copy link

wasinger commented Dec 3, 2015

For custom transition effects I currently use the transition helper functions $.fn.emulateTransitionEnd and $.support.transition from Bootstrap 3.

While porting my code to Bootstrap 4 I noted that while $.fn.emulateTransitionEnd is still available and works as expected, the $.support.transition function is no longer availabe because it got replaced by Util.supportsTransitionEnd(). Unfortunately, the Util class is available within a Closure only so I cannot access it from my code.

So I ask to export the Util class to the global or jQuery namespace (e.g. as $.BootstrapUtil) to make it available for use in custom JS code.

This is somehow related to #18136 which complains about the Util class being exported as Util in the global namespace, which is not true for the default build - it is not exported at all, but IMHO should be exported under some name other than plain "Util".

@Johann-S
Copy link
Member

Thanks to #23735 now you can do : bootstrap.Util because bootstrap is a global var

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants