Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#7471 closed enhancement (invalid)

Warning / Logging Module for the jQuery Development Version

Reported by: Avorin Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version:
Keywords: Cc:
Blocked by: Blocking:

Description

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?

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

It's a great idea for a plugin, like http://james.padolsey.com/javascript/jquery-lint/

Since this isn't a bug I'll close it. This is a better topic for forum discussion.

Note: See TracTickets for help on using tickets.