-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Effects Rewrite #1017
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
Effects Rewrite #1017
Conversation
Travis/grunt sezs: "FFFFFFFFF". At least there's no "UUUUUUUUUU". |
Yup, tests are broken. They test the wrong thing. I'll fix, but wanted to get some human eyes on it. |
👍 seems sane to me. |
@scottgonzalez @jzaefferer ping. The last bits here are just verifying that visual and units are working in IE ( they all work in Safari, Opera, Chrome, FF), and also animating the placeholder for blind and fold. Can you both review the code please? |
Even when ignoring white space changes, I have a hard time reviewing this, since I know so little about the existing code. @mikesherov how about a Skype session where we review the code together? You could walk me (and Scott, if available) through the changes. |
If @mikesherov's availability is still low, I can walk you through the code some time this week. I have a decent understanding of the existing code and I've done a walk through of this code at least once with @mikesherov (though it was a long time ago). |
@@ -75,20 +75,6 @@ test( "removeClass", function() { | |||
equal( "", element[ 0 ].className ); | |||
}); | |||
|
|||
|
|||
/* TODO: Disabled - Can't figure out why this is failing in IE 6/7 |
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.
Determine if we can enable this now that we don't support IE 6/7.
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.
Well, it's testing a deprecated function anyway, but I'll see if I can enable it.
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.
Looked into enabling it, and it seemed like it passes, but I'm still removing the test because I'd have to remove it anyway in the future.
We need to look at what happens if you load an old effect definition with the new core. Does it break default modes? Anything else? |
Initial findings from
|
Hmmm. Any other good test files to use, @scottgonzalez? I was using the visual test suite, but apparently that isn't nearly good enough. |
Other than the actual test files, I think the default effect demo is the only other file to use. |
demos/effect/show.html, Scale is broken, throws |
Not a regression introduced by this PR (aka already broken): In IE8 the toggleClass demo doesn't animate the height decrease (first click), while the height increase is animated (second click). |
I'm not going to fix this in the effects rewrite as I don't touch any of the toggleClass stuff. Filed a bug instead: http://bugs.jqueryui.com/ticket/10606 |
@mikesherov what's the status here? There's two open issues on the task list above, are you working on those? Do you need help with testing? |
@scottgonzalez @jzaefferer ready for rereview! |
// that turn to inline block based on content (like img) | ||
display: /^(inline|ruby)/.test( element.css( "display" ) ) ? "inline-block" : "block", | ||
visibility: "hidden", | ||
// margins need to be set to account for margin collapse |
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.
blank line, capitalization
I still need to do some actual testing in the browser, but I finished looking through the changes. @mikesherov Can you file an api.jqueryui.com issue for all the API changes and new methods? We can fill in the actual details later, but it'd be good to have a list of what we need to document. |
The height of the main element in the effect demos is now too small because of the font-size changes in master. |
Scale show doesn't animate, but showing via toggle does. |
@scottgonzalez the punchline was that the supplied params in the demo weren't sane. The code was fine :-\ |
@jzaefferer @scottgonzalez ping for rereview |
@jzaefferer note that the semantics of |
Looks good. Just need to address the element size (see previous comment). |
@scottgonzalez addressed the element size. Should be good for final review. /cc @jzaefferer |
@scottgonzalez not sure what I need to document. Basically all the methods I deprecated were already not documented to begin with. Is the intent that for the effects rewrite we will document all of the helper methods I created on |
We should document anything that an effect author would need. I'm not too worried about documenting stuff for old versions. Right now I just want a list of the method signatures in an issue on api.jqueryui.com so we make sure it gets done before the release. |
Perfect. Thanks. |
@@ -950,113 +1131,109 @@ $.extend( $.effects, { | |||
// this should be a little more flexible in the future to handle a string & hash |
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.
Is this comment still correct? It looks like only the formatting changed, but I doubt that we're going to change this method in the future.
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.
I left it in because I didn't write the original :-)
Tested locally and in BrowserStack on various browsers, using the visual test pages. Reviewed a few individual effects and effect.js in detail. Didn't find anything interesting except for those comments. Not sure if any of those even need to change, so this is likely good to land. |
Tasks
Discuss
Testing
Follow up
http://bugs.jqueryui.com/ticket/10599 http://bugs.jqueryui.com/ticket/10600