Class: CoreCompat

CoreCompat

new mmir.compat.v3.CoreCompat(mmir)

Set to "backwards compatibility mode v3" (for pre version 4.0) for module names and method names. This function adds old names/synonyms for modules names (on mmir object/namespace): In addition, old method names will be added as synonyms: Methods with changed signature will be re-mapped to match their old signature
  • mmir.ConfigurationManager
    • map get(propertyName, defaultValue, useSafeAccess) back to
      get(propertyName, useSafeAccess, defaultValue)
      the original function will be available via _get(propertyName, useSafeAccess, defaultValue)
    • map getBoolean(propertyName, defaultValue, useSafeAccess) back to
      getBoolean(propertyName, useSafeAccess, defaultValue)
      the original function will be available via _getBoolean(propertyName, useSafeAccess, defaultValue)
    • map getString(propertyName, defaultValue, useSafeAccess) back to
      getString(propertyName, useSafeAccess, defaultValue)
      the original function will be available via _getString(propertyName, useSafeAccess, defaultValue)
Lastly, removed methods will be added:
Name Type Description
mmir mmir the (core) instance/namespace for MMIR
See:
  • mmir.compat.v3.CommonUtils
  • mmir.compat.v3.Constants
  • mmir.compat.v3.LanguageManager
Example
mmir.require(['mmirf/core3Compatibility', 'mmirf/core'], function(setCompatibility, mmir){
		setCompatibility(mmir);
});

//OR: if mmir-lib modules were require'd in application code, add v3 module-ID aliases first:
mmir.require(['mmirf/core3ModuleIdCompatibility', 'mmirf/core3Compatibility', 'mmirf/core'], function(core3ModuleIdCompatibility, setCompatibility, mmir){
		core3ModuleIdCompatibility(mmir.require, mmir);
		setCompatibility(mmir);
});

Requires

  • module:SemanticInterpreterCompatibility