Liferay.Loader.define("liferay!object-js-components-web$codemirror@5.65.12/src/edit/utils", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import { clearCaches } from "../measurement/position_measurement.js";

    export function themeChanged(cm) {
      cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
      clearCaches(cm);
    }
  }
});
//# sourceMappingURL=utils.js.map