Skip to main content

Bug Tracker

Side navigation

#14543 closed feature (invalid)

Opened November 14, 2013 02:11PM UTC

Closed November 29, 2013 09:16AM UTC

Move more types constants to separate variables like strundefined

Reported by: FarSeeing Owned by: FarSeeing
Priority: undecided Milestone: None
Component: unfiled Version: 2.1.0-beta1
Keywords: Cc:
Blocked by: Blocking:
Description

As

typeof undefined
is stored in
strundefined
why not also store other types?

E. g.

"object"
constant is used 17 times in 10 different files as per commit 203569562414304aabec22fd20b0cb17ad34c7ad

Attachments (0)
Change History (2)

Changed November 14, 2013 06:05PM UTC by gibson042 comment:1

owner: → FarSeeing
status: newpending

strundefined was introduced to work around a minification issue with UglifyJS that replaced typeof el.domMethod !== "undefined" with e.domMethod!==void 0, which breaks in IE when el is an XML node (see #13315). The issue has since been fixed, so it's worth looking at the effects on output size of comparing typeof output to variables or constants for all cases. Would you like to tackle this, [ticket:14543 FarSeeing]?

Changed November 29, 2013 09:16AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!