#288 closed enhancement (invalid)
Dojo needs some method of type-checking variables
Reported by: | Brian Lucas | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Core | Version: | 0.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Based on this bug here: http://dojotoolkit.org/trac/ticket/270 (see bottom)
It would be helpful to specify which type of variable an argument should be expecting (string, integer, object, array) and then proceed with a course of action (dojo.debug('error: wrong type passed for var...')) or something like that.
Note: See
TracTickets for help on using
tickets.
There is, in fact, plenty of helper methods provided in the dojo.lang namespace for this; it's just that not everything uses them, particularly with the widget system (nor probably should it).
Marking as "invalid".