Closed (won't fix)
Project:
jQuery UI
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2008 at 20:12 UTC
Updated:
6 Jul 2008 at 13:54 UTC
Just testing things out, I tried:
jquery_ui_add('fadsjhskahdksasd');
And the code didn't complain. :P
I'm not actually sure what the 'right' behaviour for this would be. Obviously, I could drupal_set_message() an error right on the screen, but this needs to be more a clue to developers than it is to end users.
Comments
Comment #1
avpadernoLooking at what
drupal_add_css()does, I don't see any validation code. I would think that the same behavior should be kept fromjquery_ui_add().Like you said, it would not be clear what the module could do in that case, as a call to
drupal_set_message()would be seen by the end user, and not by the developers. The only alternatives I could think of is to show the message if the user has the right permission (i.e. he administers the site), or to add an error message in the log.Comment #2
webchickFair enough. :)