@codeleap/mobile 3.12.23 → 3.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "3.12.23",
3
+ "version": "3.13.1",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -167,7 +167,7 @@ export class NotificationManager {
167
167
  const newLen = this.messageListeners.push(handler)
168
168
 
169
169
  return () => {
170
- this.messageListeners.splice(newLen - 1)
170
+ this.messageListeners.splice(newLen - 1, 1)
171
171
  }
172
172
  }
173
173
 
@@ -181,7 +181,7 @@ export class NotificationManager {
181
181
  const newLen = this.stateChangeListeners.push(handler)
182
182
 
183
183
  return () => {
184
- this.stateChangeListeners.splice(newLen - 1)
184
+ this.stateChangeListeners.splice(newLen - 1, 1)
185
185
  }
186
186
 
187
187
  }