devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
28 lines (27 loc) • 762 B
JavaScript
/**
* DevExtreme (cjs/__internal/core/utils/m_call_once.js)
* Version: 24.2.6
* Build date: Mon Mar 17 2025
*
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.callOnce = void 0;
const callOnce = function(handler) {
let result;
let wrappedHandler = function() {
result = handler.apply(this, arguments);
wrappedHandler = function() {
return result
};
return result
};
return function() {
return wrappedHandler.apply(this, arguments)
}
};
exports.callOnce = callOnce;