Skip to main content

Bug Tracker

Side navigation

#7471 closed enhancement (invalid)

Opened November 11, 2010 10:48AM UTC

Closed November 11, 2010 01:49PM UTC

Last modified March 13, 2012 04:22PM UTC

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?

Attachments (0)
Change History (1)

Changed November 11, 2010 01:49PM UTC by dmethvin comment:1

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.