Closed Bug 981510 Opened 11 years ago Closed 11 years ago

[Settings] Define the MVVM modules using AMD

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arthurcc, Assigned: arthurcc)

References

Details

Attachments

(1 file)

The MVVM modules are critical to the coming panel refactors. We should define them using AMD.
Hi Evelyn, could you help review the patch? It simply separates the original files (models.js and view.js) into three files for each module. There are also minor changes to keyboard.js for making unit tests work. Note that this is just temporarily. Once the objects definedkeyboard.js are defined using AMD the code will not look this tricky. Which will be done in another patch.
Attachment #8393950 - Flags: review?(ehung)
Comment on attachment 8393950 [details] Link to https://github.com/mozilla-b2g/gaia/pull/17358 Sorry for my late review. This patch is doing three things: - separate two model objects which were defined in models.js to different files. - wrap mvvm modules in AMD modules - fix test cases r+ with only one comment on the PR.
Attachment #8393950 - Flags: review?(ehung) → review+
Thanks, Evelyn! master: 84c7009d6efa886fbd74510203485bc4e6e2c7e6
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
No longer blocks: 969264
Blocks: 956210
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: