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

Problem with multiple libraries #530

Closed
ffcc opened this issue Feb 23, 2016 · 5 comments
Closed

Problem with multiple libraries #530

ffcc opened this issue Feb 23, 2016 · 5 comments

Comments

@ffcc
Copy link

ffcc commented Feb 23, 2016

I have multiple libraries (jQuery including) that overrides the window.define function and I need the Slider added to the window object (window.Slider = factory(jQuery)). How can I force this to fix the problem with other libraries?

@seiyria
Copy link
Owner

seiyria commented Feb 23, 2016

It sounds like you need to fix your environment, use bridget, or something else. AFAIK, we follow AMD so if something breaks that, there's not much we can do.

@ffcc
Copy link
Author

ffcc commented Feb 23, 2016

I work with bower and have a lot of dependencies on my project. When I add bootstrap-slider as a dependency and follow the simple example with and without jQuery it seems the window.Slider is not register in both the window and the jQuery object. In case of AMD I'm not explicit use require or something like that.

@rovolution
Copy link
Collaborator

could you provide a Fiddle with an example? Thanks!

@ffcc
Copy link
Author

ffcc commented Feb 23, 2016

In case I can't fix my environment I will provide an example with Fiddle. Thanks!

@seiyria
Copy link
Owner

seiyria commented Jun 1, 2016

duplicate of #575 and others. Closing this one.

@seiyria seiyria closed this as completed Jun 1, 2016
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

No branches or pull requests

3 participants