MCPcopy Create free account
hub / github.com/docker/getting-started / BootstrapModalManager

Function BootstrapModalManager

app/src/static/js/react-bootstrap.js:13942–13967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13940 _inheritsLoose(BootstrapModalManager, _ModalManager);
13941
13942 function BootstrapModalManager() {
13943 var _this;
13944
13945 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13946 args[_key] = arguments[_key];
13947 }
13948
13949 _this = _ModalManager.call.apply(_ModalManager, [this].concat(args)) || this;
13950
13951 _this.adjustAndStore = function (prop, element, adjust) {
13952 var actual = element.style[prop];
13953 element.dataset[prop] = actual;
13954 style_default()(element, prop, parseFloat(style_default()(element, prop)) + adjust + "px");
13955 };
13956
13957 _this.restore = function (prop, element) {
13958 var value = element.dataset[prop];
13959
13960 if (value !== undefined) {
13961 delete element.dataset[prop];
13962 style_default()(element, prop, value);
13963 }
13964 };
13965
13966 return _this;
13967 }
13968
13969 var _proto = BootstrapModalManager.prototype;
13970

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…