RESOLVED FIXED 154008
Web Inspector: Extract a few common unicode characters into global variables
https://bugs.webkit.org/show_bug.cgi?id=154008
Summary Web Inspector: Extract a few common unicode characters into global variables
Joseph Pecoraro
Reported 2016-02-08 14:08:22 PST
* SUMMARY Extract a few common unicode characters into global variables We use `ellipsis` and `emDash` in a lot of places, even storing into a temporary well named global. Lets just make them always available in Utilities to avoid having to look them up everywhere.
Attachments
[PATCH] Proposed Fix (28.51 KB, patch)
2016-02-08 14:09 PST, Joseph Pecoraro
timothy: review+
[PATCH] For Landing (29.47 KB, patch)
2016-02-08 14:15 PST, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-02-08 14:09:17 PST
Joseph Pecoraro
Comment 2 2016-02-08 14:09:49 PST
Created attachment 270881 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 3 2016-02-08 14:11:05 PST
> ...even storing into a temporary well named global... I meant: temporary well named variable.
Timothy Hatcher
Comment 4 2016-02-08 14:11:59 PST
Comment on attachment 270881 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=270881&action=review > Source/WebInspectorUI/UserInterface/Base/Utilities.js:28 > +emDash = "\u2014"; > +ellipsis = "\u2026"; var or const?
Joseph Pecoraro
Comment 5 2016-02-08 14:13:55 PST
Comment on attachment 270881 [details] [PATCH] Proposed Fix I think we want it to be obvious that we are leaking it to the global namespace. Const wouldn't work as that would scope it to this lexical scope. var would be fine.
Joseph Pecoraro
Comment 6 2016-02-08 14:15:38 PST
Created attachment 270882 [details] [PATCH] For Landing
WebKit Commit Bot
Comment 7 2016-02-08 15:13:14 PST
Comment on attachment 270882 [details] [PATCH] For Landing Clearing flags on attachment: 270882 Committed r196275: <http://trac.webkit.org/changeset/196275>
Note You need to log in before you can comment on or make changes to this bug.