Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9647 (new enhancement)

Opened 8 months ago

Last modified 8 months ago

[PATCH] Shorter type check definitions

Reported by: kangax Assigned to: Tobie
Priority: low Milestone: 2.x
Component: Prototype Version: edge
Severity: minor Keywords: 1.6 ready trivial
Cc:

Description

Following prototype's conventions, we can define isFunction, isString, isNumber and isUndefined functions in a much shorter way (5 vs 15 lines) at almost no cost of execution time

Attachments

shorter_type_check_definitions.diff (0.8 kB) - added by kangax on 09/24/07 15:25:10.

Change History

09/24/07 15:25:10 changed by kangax

  • attachment shorter_type_check_definitions.diff added.

09/24/07 22:09:01 changed by Tobie

  • keywords set to 1.6 ready trivial.
  • owner changed from sam to Tobie.
  • severity changed from normal to minor.
  • priority changed from normal to low.