MCPcopy
hub / github.com/webpack/webpack / _bindClickEvents

Function _bindClickEvents

test/configCases/inner-graph/issue-11678/module.js:1125–1157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1123 return Number(getUrlParameter("theShowFormOnly")) === 1;
1124}
1125function _bindClickEvents() {
1126 $(document).on(
1127 "click",
1128 _tableOverlayClass + " button.close",
1129 async function () {
1130 const parent = $(this).closest(_showTableInElement),
1131 parentWidth = parent.width();
1132
1133 if (_isShowFormOnly()) {
1134 $(".overview").addClass("notable");
1135 $(".menutableindetails").show();
1136 }
1137 $(document)
1138 .find(_tableOverlayClass)
1139 .animate({ left: "-" + parentWidth }, 200, function () {
1140 $(this).css({ visibility: "hidden" });
1141 $(this).removeAttr("style");
1142 });
1143
1144 if (!isUndefined(addedBreadcrumbId)) {
1145 await Breadcrumb.remove(addedBreadcrumbId);
1146 }
1147
1148 removeTextEditor();
1149
1150 _showParentTable();
1151 }
1152 );
1153 const positionTableContainer = new DomElement(_showTableInElement, false);
1154 if (positionTableContainer.size() > 0) {
1155 resizeObserverInstance.observe(positionTableContainer.getDomElement());
1156 }
1157}
1158function _getParentDescription(name) {
1159 let text = "";
1160 if (_parentTableSelection) {

Callers 1

initializeFunction · 0.85

Calls 6

$Function · 0.85
_isShowFormOnlyFunction · 0.85
_showParentTableFunction · 0.85
cssMethod · 0.80
removeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected