-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Effects: Split, new effect #185
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
Conversation
Still considering using $.effects.createWrapper and $.effects.save/restore.
|
Awesome work here @Lindstroem! So, this brings up one bit of conversation - This effect set totally includes (and supersedes) the current |
tests/visual/effects.all.html
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this doesn't really do anything "visual" do you think you could clear it out of this test? If its not working, the next 4 effects aren't going to work either...
|
Also, I just got called out on some of my code for jquery.color -- We should always prefer using double quotes instead of single quotes, as well as === instead of == ( unless we really want the == ) |
ui/jquery.effects.split.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having just seen the above 20 lines of code duplicated, might it be possible to create a function to DRY this up a little?
function splitOptions( el, defaults, o ) {
var opt = $.extend( {}, defaults, o );
if ( el.is( ':hidden' ) && opt.mode === "toggle") {
opt.reverse = !opt.reverse;
}
opt.mode = $.effects.setMode( el, opt.mode );
opt.show = opt.mode === "show";
return opt;
}
// then in the functions:
var el = $( this ),
opt = splitOptions( el, {.....}, o );
=== "show". This given i made some changes to some of the uses of opt.show
|
What if a element is trying to split out of the document like, moves to a negative value or larger than the document is wide/high? Should this be taken care of maybe? |
|
I would think it may be possible to wrap the container element in an overflow:hidden that is document width/height so that the animations can go outside the doc all they want but not induce extra scrollbars |
|
This pull has gone stale, any chance we can get it freshened up? |
|
so there is really 2 things to this pull the first is the split thing just on normal elements and, as far as i know, there is nothing more to put into this? it works right? then there is the effects on the text witch i have made some of but as i remember have some problems with. So i will write this on my todo list and i should have time se whats needed! |
|
ohh.. just looked at the repo.. I think i stopped working on the text split effects because there were some guys (on weekly dev meetings) that said this split wasn't going to get under the hood of jquery ui? but i don't know if that has changed now where 2.0 is a little closer? |
|
We can look again at the text split, but I still think this could use some freshening up... I'd like to see the split effects land in 1.9, but It no longer merges cleanly with master, and I believe its still using an API that isn't current in 1.9... track me down, talk with me about it :) |
|
i just gonna take a quick look at the code tomorrow and then i will catch you at irc and we can discuss whats need to be done! |
|
@Lindstroem can you summarize what the status is? I'd love to see this make its way in and can ask Scott to take a look.. |
|
I'm still willing to update this branch myself if @Lindstroem doesn't have the time for it |
|
Yea. so I've been looking into it today and it is good to go.. but the merging with master fails as i understand from @gnarf37.. so if there is something there needs to be updated in the code just notifiy me! |
|
lindstroem can you reopen ;) |
Conflicts: tests/unit/effects/effects.html tests/visual/effects/effects.all.html Made merge
This reverts commit 928be4e.
|
@gnarf37: any news on this? |
|
Bump |
|
👍 |
1 similar comment
|
👍 |
|
been looking into this; in the pull request status: http://oksoclap.com/ui-pull-requests the following is pointed out:
i don't know if anyone is up for reviewing and how the status is for the other cleaning tasks. I will try to be at the weekly meeting for UI today and ask into this. |
|
We haven't used that clap in a while, but that was the last time we did a big group review of pulls. I do want this to land in 1.9 soon, but I'm pretty involved in some other areas of the project right now that stop me from doing the necessary work at the current moment. |
|
@gnarf37, @scottgonzalez, @jzaefferer ping. |
|
We're still waiting until we've cleaned up more of the existing code before adding more effects. |
|
Thanks again for the had work here, but we've finally decided that we're not going to pursue further effects at this time, and therefore, are closing this pull request. |
The split effects reported in feature bug http://bugs.jqueryui.com/ticket/7069 has been implemented