@syncfusion/ej2-base
Advanced tools
Comparing version 23.1.41 to 23.1.42
@@ -172,4 +172,4 @@ { | ||
"typings": "index.d.ts", | ||
"version": "23.1.41", | ||
"version": "23.1.42", | ||
"sideEffects": true | ||
} |
@@ -66,2 +66,8 @@ /** | ||
/** | ||
* To remove internationalization events | ||
* | ||
* @returns {void} ? | ||
*/ | ||
offIntlEvents(): void; | ||
/** | ||
* Returns if the property exists. | ||
@@ -68,0 +74,0 @@ * |
@@ -26,3 +26,3 @@ import { isNullOrUndefined, getValue, extend, isBlazor } from './util'; | ||
if (this.notExist(property)) { | ||
this.boundedEvents["" + property] = [{ handler: handler, context: cntxt }]; | ||
this.boundedEvents["" + property] = [{ handler: handler, context: cntxt, id: id }]; | ||
return; | ||
@@ -169,2 +169,22 @@ } | ||
/** | ||
* To remove internationalization events | ||
* | ||
* @returns {void} ? | ||
*/ | ||
Observer.prototype.offIntlEvents = function () { | ||
var eventsArr = this.boundedEvents['notifyExternalChange']; | ||
if (eventsArr) { | ||
for (var i = 0; i < eventsArr.length; i++) { | ||
var curContext = eventsArr[0].context; | ||
if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) { | ||
this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId); | ||
i--; | ||
} | ||
} | ||
if (!this.boundedEvents['notifyExternalChange'].length) { | ||
delete this.boundedEvents['notifyExternalChange']; | ||
} | ||
} | ||
}; | ||
/** | ||
* Returns if the property exists. | ||
@@ -171,0 +191,0 @@ * |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
11486023
108178