mozilla-b2g/gaia — pull request #15907 by tdz (2014-02-03 13:58:15+00:00)
Title: Bug 966243: Fix ICC detection handlers in Settings app

While running the Settings app several errors about self.* not being
defined show up in the logcat. An example is

E/GeckoConsole( 440): [JavaScript Error: "TypeError: self.updateSimPinsUI \
is not a function" {file: "app://settings.gaiamobile.org/js/simcard_lock.js" \
line: 232}]

This is caused by 'self' not being set in the event handlers for ICC
detection. As a result, the UI update does not work correctly when the
ICC changes state. Setting the variable 'self' fixes this problem.

Signed-off-by: Thomas Zimmermann