UNPKG

@openui5/sap.ui.core

Version:

OpenUI5 Core Library sap.ui.core

32 lines (26 loc) 624 B
/* * OpenUI5 * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([], function () { "use strict"; /*global Map */ var mRegistry = new Map(); /** * @private * @ui5-restricted */ var _Calendars = { get: function (sCalendarType) { if (!mRegistry.has(sCalendarType)) { sap.ui.requireSync("sap/ui/core/date/" + sCalendarType); } return mRegistry.get(sCalendarType); }, set: function (sCalendarType, CalendarClass) { mRegistry.set(sCalendarType, CalendarClass); } }; return _Calendars; });