@progress/kendo-base-component-react-wrapper
Advanced tools
Comparing version 2021.3.1109-dev.11120947 to 2021.3.1109-dev.11121024
@@ -24,2 +24,14 @@ /// <reference types="@progress/kendo-ui" /> | ||
}; | ||
_this.exposeWidget = function () { | ||
if (_this.props.widgetRef && typeof _this.props.widgetRef === 'function') { | ||
_this.props.widgetRef(_this.widgetInstance); | ||
} | ||
}; | ||
_this.overrideDestroy = function () { | ||
_this.widgetDestroy = _this.widgetInstance.destroy; | ||
_this.widgetInstance.destroy = function () { | ||
_this.destroyed = !_this.destroyed; | ||
_this.widgetDestroy.call(_this.widgetInstance); | ||
}; | ||
}; | ||
return _this; | ||
@@ -38,15 +50,2 @@ } | ||
}; | ||
KendoBaseComponent.prototype.exposeWidget = function () { | ||
if (this.props.widgetRef && typeof this.props.widgetRef === 'function') { | ||
this.props.widgetRef(this.widgetInstance); | ||
} | ||
}; | ||
KendoBaseComponent.prototype.overrideDestroy = function () { | ||
var _this = this; | ||
this.widgetDestroy = this.widgetInstance.destroy; | ||
this.widgetInstance.destroy = function () { | ||
_this.destroyed = !_this.destroyed; | ||
_this.widgetDestroy.call(_this.widgetInstance); | ||
}; | ||
}; | ||
return KendoBaseComponent; | ||
@@ -53,0 +52,0 @@ }(React.PureComponent)); |
@@ -26,2 +26,14 @@ "use strict"; | ||
}; | ||
_this.exposeWidget = function () { | ||
if (_this.props.widgetRef && typeof _this.props.widgetRef === 'function') { | ||
_this.props.widgetRef(_this.widgetInstance); | ||
} | ||
}; | ||
_this.overrideDestroy = function () { | ||
_this.widgetDestroy = _this.widgetInstance.destroy; | ||
_this.widgetInstance.destroy = function () { | ||
_this.destroyed = !_this.destroyed; | ||
_this.widgetDestroy.call(_this.widgetInstance); | ||
}; | ||
}; | ||
return _this; | ||
@@ -40,15 +52,2 @@ } | ||
}; | ||
KendoBaseComponent.prototype.exposeWidget = function () { | ||
if (this.props.widgetRef && typeof this.props.widgetRef === 'function') { | ||
this.props.widgetRef(this.widgetInstance); | ||
} | ||
}; | ||
KendoBaseComponent.prototype.overrideDestroy = function () { | ||
var _this = this; | ||
this.widgetDestroy = this.widgetInstance.destroy; | ||
this.widgetInstance.destroy = function () { | ||
_this.destroyed = !_this.destroyed; | ||
_this.widgetDestroy.call(_this.widgetInstance); | ||
}; | ||
}; | ||
return KendoBaseComponent; | ||
@@ -55,0 +54,0 @@ }(React.PureComponent)); |
{ | ||
"name": "@progress/kendo-base-component-react-wrapper", | ||
"version": "2021.3.1109-dev.11120947", | ||
"version": "2021.3.1109-dev.11121024", | ||
"description": "Kendo UI Base Component wrapper for React", | ||
@@ -5,0 +5,0 @@ "main": "./dist/npm/index.js", |
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
11589
140