Bug 1174683 - [Secure Element] Fix TypeError in UiccConnector.unregisterListener. r=allstars.chh
authorKrzysztof Mioduszewski <kmioduszewski@gmail.com>
Mon, 15 Jun 2015 03:58:00 -0400
changeset 249130 4b827038a8c57174428c6ca3d2a0ea899cebc0a3
parent 249129 a6bab13aa2302041d1a25a4bf7eb99e617a6e461
child 249131 e1781c1f251865f448e9c1d3d2d96a096b849f35
push id61149
push userryanvm@gmail.com
push dateTue, 16 Jun 2015 18:48:55 +0000
treeherdermozilla-inbound@4f381552336d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersallstars.chh
bugs1174683
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1174683 - [Secure Element] Fix TypeError in UiccConnector.unregisterListener. r=allstars.chh
dom/secureelement/gonk/UiccConnector.js
--- a/dom/secureelement/gonk/UiccConnector.js
+++ b/dom/secureelement/gonk/UiccConnector.js
@@ -323,17 +323,17 @@ UiccConnector.prototype = {
     this._SEListeners.push(listener);
     // immediately notify listener about the current state
     listener.notifySEPresenceChanged(SE.TYPE_UICC, this._isPresent);
   },
 
   unregisterListener: function(listener) {
     let idx = this._SEListeners.indexOf(listener);
     if (idx !== -1) {
-      this._listeners.splice(idx, 1);
+      this._SEListeners.splice(idx, 1);
     }
   },
 
   /**
    * nsIIccListener interface methods.
    */
   notifyStkCommand: function() {},