1. #1
    Sencha User renku's Avatar
    Join Date
    Feb 2009
    Location
    Estonia
    Posts
    433
    Vote Rating
    17
    renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold

      0  

    Default Event names with dashes. A new convention?

    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:

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

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Location
    Bucharest, Romania
    Posts
    70
    Vote Rating
    0
    icflorescu is on a distinguished road

      0  

    Default


    +1

    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

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar