I meant to reply to this yesterday and comment about this.  This falls into
a similar category as the assertions on event properties that we removed,
BUT I do not know of a single case where a hyphen is okay, so its a little
different.  If anyone does know of such a case, we should probably not
include this, and I'll just update the JavaDoc instead.
Thanks,
John LaBanca
[EMAIL PROTECTED]


On Thu, Sep 18, 2008 at 9:45 AM, Joel Webber <[EMAIL PROTECTED]> wrote:

> LGTM.
>
> Before you commit, though, can anyone think of a single case where a hyphen
> would legitimately be used here? I can't, and as John points out, even stuff
> like "-moz-opacity" doesn't use a hyphen in this context.
>
>
> On Wed, Sep 17, 2008 at 12:23 PM, John LaBanca <[EMAIL PROTECTED]>wrote:
>
>> Joel -
>>
>> Please do a code review for this Style enhancement.
>>
>> Description:
>> ========
>> When setting style properties programatically in GWT, it would be nice to
>> assert that the styles do not contain hyphens so people don't accidently use
>> names like "margin-left" instead of "marginLeft".
>>
>>
>> Fix:
>> ===
>> This patch adds an assertion that the property name for all Style methods
>> is in camelCase format.  I verified that when assertions are disabled, the
>> code will be completely compiled out.  I also verified that mozilla
>> extensions follow the camelCase rule (eg. "-moz-opacity" should be
>> "MozOpacity").
>>
>>
>> Testing:
>> ======
>> I verified this in hosted and web mode on FF and added a unit test.
>>
>>
>> Thanks,
>> John LaBanca
>> [EMAIL PROTECTED]
>>
>
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to