Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#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:


Based on this bug here: (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.

Change History (2)

comment:1 Changed 16 years ago by Tom Trenka

Resolution: invalid
Status: newclosed

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".

comment:2 Changed 15 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.