andreasgal/gaia — Issue #342: mozSettings requests fires onsuccess twice
Author: timdream
Created: 2012-02-03 10:06:50+00:00
State: open
Labels: bug, settings

**STR:**

At `./apps/settings/js/settings.js`, add a `dump('req' + key)` after line 20, then another `dump('res' + key)` within `onsuccess` function.

**Result:**

log will print `req` for each key once, but `res` for each key twice.

For keyboard, the current planned workaround w/o setting change listener is to call a bunch of requests, count the number of request, wait for all of them to complete, then do `this.showIME`. If `onsuccess` fires randomly I would need to write ugly checks to workaround this problem.