#1451 closed bug (wontfix)
Boolean expression or conditional operator
Reported by: | hobbit | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.1 |
Component: | core | Version: | 1.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
trim: function(t){ return (t||"").replace(/^\s+|\s+$/g, ""); }
The following expression is shorter and faster.
trim: function(t){ return t?t.replace(/^\s+|\s+$/g, ""):""; }
Change History (1)
comment:1 Changed 16 years ago by
Milestone: | 1.1.4 → 1.2.1 |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Version: | 1.1.3 → 1.2 |
Note: See
TracTickets for help on using
tickets.