devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
24 lines (23 loc) • 647 B
JavaScript
/**
* DevExtreme (core/utils/call_once.js)
* Version: 18.2.18
* Build date: Tue Oct 18 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
var callOnce = function(handler) {
var result;
var _wrappedHandler = function() {
result = handler.apply(this, arguments);
_wrappedHandler = function() {
return result
};
return result
};
return function() {
return _wrappedHandler.apply(this, arguments)
}
};
module.exports = callOnce;