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

jQuery-Bug when referencing jquery.foundation.* #2

Open
codingfreak opened this issue Feb 17, 2013 · 1 comment
Open

jQuery-Bug when referencing jquery.foundation.* #2

codingfreak opened this issue Feb 17, 2013 · 1 comment

Comments

@codingfreak
Copy link

Hey Ed!

I told you on twitter that I've got some strange errors in FireBug when I use Foundation. The Bug says:

"TypeError: $(...).die is not a function"

on jQuery.Foundation.TopBar.js. Could it be, that jQuery is implemented twice by Foundation? Maybe "die" is defined more than one time? Here are my bundle-renderings in _Layout:

@Scripts.Render("/bundles/jquery")
@Scripts.Render("
/bundles/jqueryui")
@Scripts.Render("/bundles/controls")
@Scripts.Render("
/bundles/globalize")
@Scripts.Render("~/bundles/foundation")

and this is my bundle-config:

bundles.Add(new ScriptBundle("/bundles/jquery").Include(
"
/Scripts/jquery-{version}.js"));

bundles.Add(new ScriptBundle("/bundles/jqueryui").Include(
"
/Scripts/jquery-ui-{version}.js"));

bundles.Add(new ScriptBundle("/bundles/jqueryval").Include(
"
/Scripts/jquery.unobtrusive_",
"~/Scripts/jquery.validate_"));

bundles.Add(new ScriptBundle("/bundles/foundation").Include(
"
/Scripts/foundation/jquery.*",
"~/Scripts/foundation/app.js"));

bundles.Add(new ScriptBundle("/bundles/globalize").Include(
"
/Scripts/globalize.js",
"~/Scripts/cultures/globalize.culture.de*"));

bundles.Add(new ScriptBundle("/bundles/controls").Include(
"
/Scripts/DataTables-1.9.4/media/js/dataTables.js"));

Any ideas?

@EdCharbeneau
Copy link
Owner

Please see if your problem is related to this issue: #1

You either need to update foundation or roll back jQuery.

Regards,
Ed

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

2 participants