jQWidgets Forums

jQuery UI Widgets Forums General Discussions All of catched errors aren't log in the console

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • cosostones
    Participant

    Hello,

    In all of your component, you catch all errors and you do nothing with they.
    It could be a little embarrassing in certain case.

    Indeed, for example, if I wish to call the ‘uncheck’ method in jqxCheckbox by code, but I made a mistake in the method name, I call ‘unchek’ and not ‘uncheck’…

    In this case, all of the code after I called $(“#myCheckbox”).jqxCheckBox(‘uncheck’)
    would be ignored !!

    I make a sample to show you my problem :
    http://jsfiddle.net/YP6gF/21/

    This is a little problem, but I spent 2 hours to find why my code is ignored !

    I find you make a lot of :


    try{
    // Some code
    }
    catch (error)
    {
    }

    in all of your components, and I think it’s justified, but do nothing in the ‘catch’ is a little dangerous maybe.

    Would it’s possible to add a property in all of your components (ex : debugMode : true) to log all of the “errors messages” in the console ?
    It could be very usefull for developers.


    Peter Stoev
    Keymaster

    Hi cosostones,

    1. Your statement is not True. Yes, there are some places in our code where we have try, catch statements, but how we handle these depends on our own code and implementation.
    2. We will consider whether it is or it is not necessary to add additional properties to our Framework.
    3. When you type a method name incorrectly, then it will not work and it should not work. API names are listed on our website and should be used in the way demonstrated on our website.

    Regards,
    Peter Stoev

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

You must be logged in to reply to this topic.