Closed
Bug 934726
Opened 13 years ago
Closed 12 years ago
Use CustomEvent in l10n.js
Categories
(Firefox OS Graveyard :: Gaia::L10n, defect)
Firefox OS Graveyard
Gaia::L10n
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(2 files, 1 external file, 2 obsolete files)
|
589 bytes,
patch
|
stas
:
review+
|
Details | Diff | Splinter Review |
|
351 bytes,
patch
|
stas
:
review+
|
Details | Diff | Splinter Review |
That's an offspring of bug 914414.
We want to use CustomEvent but that requires changes to bto code. We'll deal with this followup bug.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → gandalf
OS: Mac OS X → All
Hardware: x86 → All
Updated•12 years ago
|
Component: Gaia → Gaia::L10n
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #8404204 -
Flags: review?(stas)
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8404205 -
Flags: review?(stas)
Comment 3•12 years ago
|
||
Comment on attachment 8404205 [details] [diff] [review]
patch, l10n part
Review of attachment 8404205 [details] [diff] [review]:
-----------------------------------------------------------------
::: bindings/l20n/runtime.js
@@ +221,5 @@
> + 'detail': {
> + 'language': this.ctx.supportedLocales[0]
> + }
> + });
> + document.dispatchEvent(event);
Changing the origin of the dispatched event will break all the apps that use window.addEventListener('localized'), won't it?
Should we keep window for now and file a follow-up to change it later across all the apps (and their tests!)?j
Attachment #8404205 -
Flags: review?(stas) → review-
| Assignee | ||
Comment 4•12 years ago
|
||
You're right!
I'm going to postpone updating this patch until bug 994459 is fixed. It seems that we may stop relying on this in bto which will make things simpler.
| Assignee | ||
Comment 5•12 years ago
|
||
Updated patch. dispatch on window.
Attachment #8404205 -
Attachment is obsolete: true
Attachment #8405059 -
Flags: review?(stas)
| Assignee | ||
Comment 6•12 years ago
|
||
Updated patch.
Attachment #8404204 -
Attachment is obsolete: true
Attachment #8404204 -
Flags: review?(stas)
Attachment #8405060 -
Flags: review?(stas)
Updated•12 years ago
|
Attachment #8405060 -
Flags: review?(stas) → review+
Updated•12 years ago
|
Attachment #8405059 -
Flags: review?(stas) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
I'll wait for travis and push it if the tests pass.
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 8•12 years ago
|
||
| Assignee | ||
Comment 9•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•