Opened 13 years ago

Closed 13 years ago

Last modified 12 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:

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.

Change History (2)

comment:1 Changed 13 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 12 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.