Eventually I find my self doing this:

        toggleStyleName = !toggleStyleName;
        if (toggleStyleName)
        {
            widget.addStyleName("SomeStyleName");
        }
        else
        {
            widget.removeStyleName("SomeStyleName");
        }


So here goes my 2 cents: instead of manually toggling a style name, it
could be simply:

        widget.toggleStyleName("SomeStyleName");

jQuery actually has such a method, it's usefull, helps keep my code
clean.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to