Closed
Bug 523693
Opened 15 years ago
Closed 15 years ago
Inline spell checker should be a module
Categories
(Toolkit :: UI Widgets, enhancement)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
Details
Attachments
(1 file)
9.38 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
Currently each spellchecked textbox (which in a stock build is very few, I only know of two in suite) loads its own copy of inlineSpellCheckUI.js; my suggestion is to convert this file into a module so that it is only loaded once.
Assignee | ||
Comment 1•15 years ago
|
||
Plus adding a stub to toolkit/obsolete until other consumers get fixed.
Updated•15 years ago
|
Attachment #407601 -
Flags: review?(gavin.sharp) → review+
Comment 2•15 years ago
|
||
Comment on attachment 407601 [details] [diff] [review] Proposed patch >diff --git a/toolkit/content/widgets/textbox.xml b/toolkit/content/widgets/textbox.xml >+ Components.utils.import("resource://gre/modules/InlineSpellChecker.jsm", this); >+ this.InlineSpellCheckerUI = new this.InlineSpellChecker(textbox.editor); Doesn't matter much, but I'd use a non-this scope object here.
Comment 3•15 years ago
|
||
(In reply to comment #2) > Doesn't matter much, but I'd use a non-this scope object here. Nevermind this, doesn't really make any sense.
Assignee | ||
Comment 4•15 years ago
|
||
Pushed changeset 1ad687761819 to mozilla-central. Pushed changeset 9ed3e755663a to mozilla-central, because I suck :-(
Assignee | ||
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•