Bug Tracker

Modify

Ticket #7471 (closed enhancement: invalid)

Opened 3 years ago

Last modified 15 months ago

Warning / Logging Module for the jQuery Development Version

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

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.