Ticket #7471 (closed enhancement: invalid)
Warning / Logging Module for the jQuery Development Version
|Reported by:||Avorin||Owned by:|
I really like that jQuery degrades gracefully and catches potential errors. But i more and more struggle with that feature because i just want to hear that the collection xy was empty, for example. A possible solution could be a jQuery.warn function, that would also be nice for plugin authors to warn developers if a parameter was out of range or something.
I could also imagine that this function only exists in the development-version (not sure that is possible with the build process) so that you get all the warnings you need while you in a development environment and when you go to production no console.logs or such functions will break the site if console is not available. What do you think about this idea?