Closed Bug 1298974 Opened 8 years ago Closed 8 years ago

Fix documentReady()

Categories

(L20n :: JS Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

Details

(Whiteboard: [gecko-l20n])

Attachments

(1 file)

The documentReady() promise should check for the 'uninitialized' state of the XUL documents.
Comment on attachment 8786111 [details] Bug 1298974 - Fix documentReady(). https://reviewboard.mozilla.org/r/75070/#review72950 ::: toolkit/content/l20n-chrome-xul.js:362 (Diff revision 1) > > + getLanguages() { > + return this.interactive.then( > + bundles => bundles.map(bundle => bundle.map) > + ); > + } Inline the code if the function is to be used only once.
Attachment #8786111 - Flags: review?(gandalf) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: