scandit-cordova-datacapture-id
Advanced tools
Comparing version 6.21.0 to 6.21.1
{ | ||
"name": "scandit-cordova-datacapture-id", | ||
"version": "6.21.0", | ||
"version": "6.21.1", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -27,6 +27,4 @@ "use strict"; | ||
const done = () => { | ||
this.idCapture.isInListenerCallback = false; | ||
return { enabled: this.idCapture.isEnabled }; | ||
}; | ||
this.idCapture.isInListenerCallback = true; | ||
if (!event) { | ||
@@ -33,0 +31,0 @@ // The event could be undefined/null in case the plugin result did not pass a "message", |
@@ -25,3 +25,2 @@ "use strict"; | ||
this.listenerProxy = null; | ||
this.isInListenerCallback = false; | ||
} | ||
@@ -33,7 +32,3 @@ get isEnabled() { | ||
this._isEnabled = isEnabled; | ||
if (!this.isInListenerCallback) { | ||
// If we're "in" a listener callback, we don't want to deserialize the context to update the enabled state, | ||
// but rather pass that back to be applied in the native callback. | ||
this.didChange(); | ||
} | ||
this.didChange(); | ||
} | ||
@@ -95,5 +90,2 @@ get context() { | ||
], IdCapture.prototype, "proxy", void 0); | ||
__decorate([ | ||
Serializeable_1.ignoreFromSerialization | ||
], IdCapture.prototype, "isInListenerCallback", void 0); | ||
exports.IdCapture = IdCapture; |
@@ -451,3 +451,2 @@ declare module Scandit { | ||
private proxy; | ||
private isInListenerCallback; | ||
static forContext(context: DataCaptureContext | null, settings: IdCaptureSettings): IdCapture; | ||
@@ -454,0 +453,0 @@ addListener(listener: IdCaptureListener): void; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128414
1909