Results 1 to 2 of 2

Thread: Event names with dashes. A new convention?

  1. #1
    Sencha User renku's Avatar
    Join Date
    Feb 2009
    Vote Rating

    Default Event names with dashes. A new convention?

    I found that some event names now contain dashes:

    * Batch#operation-complete
    * Dispatcher#before-dispatch
    * Controller#instace-created
    * Controller#instace-creation-failed
    * Controller#instace-updated
    * Controller#instace-update-failed
    * Controller#instace-destroyed
    * Controller#instace-destruction-failed

    Is this a new convention for naming events, that eventually all ExtJS code will use?

    If so, then on one hand I applaud such a change - as the old convention issometimesreallyhardtoread.

    On the other hand I have to ask: why not use camelCase, which is the standard naming-convention in JavaScript? Additionally with camelCase you wouldn't have to think about quoting when adding event-handlers like so:

    listeners: {
        "before-dispatch": function(){}, // needs to be quoted
        dispatch: function(){} // doesn't need to be quoted

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Bucharest, Romania
    Vote Rating



    I'd like to see an answer to this too...

Similar Threads

  1. [CLOSED][3.0rc1.1] Observable and CamelCased event names
    By Olivier Smeesters in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 28 May 2009, 5:39 AM
  2. Event names docs?
    By dyerrington in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 12 Feb 2009, 10:53 AM
  3. Where to find list of event names.
    By laran in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 22 Mar 2008, 1:37 PM
  4. [2.0][OPEN] Conflicting event names
    By evant in forum Ext 2.x: Bugs
    Replies: 3
    Last Post: 11 Jan 2008, 8:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts