Comments (8)
Hey Scott -
Thanks for the note - I will definitely check this out and see if it's cross-device and cross-browser compatible. I will be testing that before the next release :)
from skeleton.
Hey Scott -
Just started doing some work on the next version of Skeleton and tried the above code out and it didn't work. I would love to get a pull request going for this (or at least fully functional code). Not a JS optimization expert, but would love to hear more about the advantages too.
Will leave this open for now, but am going to work to close down all the issues and make sure Skeleton is in tip top shape for it's next release :)
from skeleton.
Scott forgot to include one of the parameters in the delegate function. It should be:
$('body').delegate('ul.tabs > li > a', 'click', function(e) {
instead of
$('body').delegate('ul.tabs > li > a', function(e) {
That works for me. As to what the benefits are, I wouldn't know. :P
from skeleton.
I actually forked and initiated a pull request shortly after Dave noted the issue, so it's been fixed for a while. If you're curious about the benefits, this is a good starting point, and you can find references all over the place.
Though, on researching that link again, there's now a disclaimer that the functionality will be encompassed in the on
method... so we'll see how this evolves alongside jQuery.
from skeleton.
Couldn't merge in cause the typo, but this is in the branch now :)
from skeleton.
Hey Dave -
Since the commit for this is so recent, I'd recommend switching to the .on
syntax instead of .delegate
. The jQuery docs state that the latter is being phased out, and Skeleton now includes jQuery-1.7.1 by default. It's a quick fix -
$('body').delegate('ul.tabs > li > a', 'click', function(e) {
to
$('body').on('click', 'ul.tabs > li > a', function(e) {
I can pull-request this after a quick test, if you'd like; but the two calls are functionally identical, according to jQuery.delegate docs, and it really is very cosmetically trivial. It's only for future-proofing when .delegate
is properly deprecated.
from skeleton.
Hey man -
Go for that and get a pull request and I will merge it in :) Thanks so much!
from skeleton.
Merged new ".on" and jQuery 1.7.1
from skeleton.
Related Issues (20)
- size attribute to input box isn't responsive HOT 1
- normalize.css HOT 1
- off-line
- Disable responsice layout for Skeleton V1.1 HOT 3
- Update to Current Features HOT 4
- Error 'Bug', The input is not aligned vertically, it can not be in the center, middle
- Recommended Fork With IE9/10 Support ?
- I know nothing about coding : Google ding me for slow loading speed on HOT 1
- How do I make the buttons smaller? HOT 1
- How to gutter size between columns while adjusting column width?
- from Skeleton to Skelet. HOT 2
- Code block size inconsistent for long lines with horizontal scrolling HOT 4
- Need Help with Rows and columns HOT 3
- Nevermind for this issue, you can delete HOT 4
- SSL cert for getskeleton.com HOT 2
- Page no longer horizontally centred HOT 1
- textarea can't set attributes rows
- Why have the button a fixed height?
- Secure
- Hgd
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skeleton.