On May 2, 2007, at 3:04 PM, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:

> Use onHit vs OnHit

        No, that's not correct. When passing event bindings in the  
constructor of an object, the naming convention follows that of  
properties, and uses an initial capital letter: OnHit, OnLostFocus,  
etc. When you are defining a method that is to be auto-bound to an  
event, the method name should start with 'on' followed by the event  
name, which is consistent with the convention that all methods start  
with a lower-case letter.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to