You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second paragraph refers to the .delay implementation in the jQuery source code, but the code section is outdated, since the current implementation looks like this:
// Based off of the plugin by Clint Helfers, with permission.// http://blindsignals.com/index.php/2009/07/jquery-delay/
delay: function(time,type){time=jQuery.fx ? jQuery.fx.speeds[time]||time : time;type=type||"fx";returnthis.queue(type,function(next,hooks){vartimeout=setTimeout(next,time);hooks.stop=function(){clearTimeout(timeout);};});}
It's probably not a good idea to have an example based on source code that's going to change over time, but could a temporary solution be to replace the code section with an updated version of the implementation?
The text was updated successfully, but these errors were encountered:
We should probably just dumb down the implementation and create one that doesn't support changing the type. It will make the code smaller and easier to follow, as well as get us away from having to track against the implementation in core. We can explain queue types later in the article.
It's probably not a good idea to have an example based on source code that's going to change over time, but could a temporary solution be to replace the code section with an updated version of the implementation?
We should probably just dumb down the implementation and create one that doesn't support changing the type.
We kind of have a similar function in queue-and-dequeue-explained.md, so that will get done by #77. I'll open a PR updating the function as it is right now, we can simplify the implementation with the other issue.
http://learn.jquery.com/effects/uses-of-queue-and-dequeue/
The second paragraph refers to the
.delay
implementation in the jQuery source code, but the code section is outdated, since the current implementation looks like this:It's probably not a good idea to have an example based on source code that's going to change over time, but could a temporary solution be to replace the code section with an updated version of the implementation?
The text was updated successfully, but these errors were encountered: