jQWidgets Forums

jQuery UI Widgets Forums General Discussions Inconsistent naming of events

This topic contains 4 replies, has 2 voices, and was last updated by  HSE_MLang 10 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Inconsistent naming of events #58279

    HSE_MLang
    Participant

    Hello,

    on my ways trough jQWidgets i stumbled over a inconsistent naming. In my case i found it for the “bindingComplete” event.

    For that i checked the event naming on other widgets. In most cases the naming “bindingComplete” is used.

    For Example:
    $(“#jqxComboBox”).on(‘bindingComplete’, function (event) {});

    But in the grid widget you are using “bindingcomplete” (only lowercase).

    Example:
    $(“#jqxGrid”).on(“bindingcomplete”, function (event) {});

    Is there a special reason why the naming differs or is it a “bug” ?

    Greetings
    M. Lang

    Inconsistent naming of events #58289

    Peter Stoev
    Keymaster

    Hi M. Lang,

    All events and API are documented. If you mean by inconsistent the different casing Ok. But I would like to inform you that all properties, methods and events in jqxGrid are lower case. Names as you can see are consistent, casing is not.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Inconsistent naming of events #58314

    HSE_MLang
    Participant

    Hi Peter Stoev,

    okay casing is surely the better naming for this. So i have to define lowercase events only to the grid and all other widgets have same casing for the events ?

    Is there a special reason for that and do you plan to synchronize the casing for the events ?

    Greetings
    M. Lang

    Inconsistent naming of events #58315

    Peter Stoev
    Keymaster

    Hi M. Lang,

    We will consider whether to make changes in casing in the future. For now, we do not plan such as this will be a breaking change for our existing users. I suggest you to read the API Documentation before using the API to avoid potential syntax issues in your code.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Inconsistent naming of events #58316

    HSE_MLang
    Participant

    Hi again,

    thanks for the info.

    Greetings

    M. Lang

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.