Closed Bug 972759 Opened 10 years ago Closed 6 years ago

[System2] Change IIFE pattern

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: alive, Assigned: kgrandon)

References

Details

It's better to change from

(function(window) {
}(this));

to

(function(export) {
}(window));
I believe export is a reserved JS keyword, so let's go with:

(function(exports) {
// ...
}(window));
Assignee: nobody → kgrandon
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.