Skip to content

Remove hard-coded FastClick dependency; Fixes #3643#3668

Closed
fny wants to merge 1 commit intofoundation:masterfrom
fny:patch-1
Closed

Remove hard-coded FastClick dependency; Fixes #3643#3668
fny wants to merge 1 commit intofoundation:masterfrom
fny:patch-1

Conversation

@fny
Copy link
Copy Markdown
Contributor

@fny fny commented Nov 23, 2013

FastClick should be an opt-in feature or loaded in a more discrete fashion. The dependency prevents Foundation from loading in the document <head /> and breaks compatability with other libraries such as Rails Turbolinks. See also RailsApps/rails_layout#5.

This really should be removed sooner than later...

FastClick should be an opt-in feature or loaded in a more discrete fashion. The dependency prevents Foundation from loading in the document `<head />` and breaks compatability with other libraries such as Rails Turbolinks. See also RailsApps/rails_layout#5.

This really should be removed sooner than later...
@seantimm
Copy link
Copy Markdown
Contributor

Thanks for the pull request! I'm going to close this in favor of the pull request attached to #3643 which relocates when FastClick is hooked up instead of removing it altogether.

@seantimm seantimm closed this Nov 24, 2013
@fny
Copy link
Copy Markdown
Contributor Author

fny commented Nov 24, 2013

@seantimm While this is a better temporary fix, FastClick should still be moved out of Foundation's primary closure. There's no point: FastClick will escape and become a global variable.

How should we go about implementing this properly?

@getsetbro
Copy link
Copy Markdown

What version will this change be in? Once that happens it can be added to the jsbin "Add library" list.

@fny
Copy link
Copy Markdown
Contributor Author

fny commented Dec 3, 2013

v5.0.3
On Dec 3, 2013 2:58 PM, "Seth Broweleit" notifications@github.com wrote:

What version will this change be in? Once that happens it can be added to
the jsbin "Add library" list.


Reply to this email directly or view it on GitHubhttps://github.com//pull/3668#issuecomment-29745367
.

@getsetbro
Copy link
Copy Markdown

And when will there be a CDN'd version of that?

@castelcerf
Copy link
Copy Markdown

I have remove the fastclick code frome foundation.js but it still dont work if i put in my head:
foundation.js
foundation.topbar.js

I should put it in the body to make it work.
Any idea for make it work in the ? I would like to compile all my JS but i cant do it if they are not in the head.

Thanks.

@getsetbro
Copy link
Copy Markdown

jsbin.com adds libraries to the HEAD. So foundation 5 can't be added to the
jsbin "add library" list until this is fixed.

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.

4 participants