MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / actionMsg

Function actionMsg

examples/assets/library/iframe.js:433–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432
433 function actionMsg() {
434
435 if(settings[iframeId] && settings[iframeId].firstRun) firstRun();
436
437 switch(messageData.type) {
438 case 'close':
439 if(settings[iframeId].closeRequestCallback) chkCallback(iframeId, 'closeRequestCallback', settings[iframeId].iframe);
440 else closeIFrame(messageData.iframe);
441 break;
442 case 'message':
443 forwardMsgFromIFrame(getMsgBody(6));
444 break;
445 case 'scrollTo':
446 scrollRequestFromChild(false);
447 break;
448 case 'scrollToOffset':
449 scrollRequestFromChild(true);
450 break;
451 case 'pageInfo':
452 sendPageInfoToIframe(settings[iframeId] && settings[iframeId].iframe,iframeId);
453 startPageInfoMonitor();
454 break;
455 case 'pageInfoStop':
456 stopPageInfoMonitor();
457 break;
458 case 'inPageLink':
459 findTarget(getMsgBody(9));
460 break;
461 case 'reset':
462 resetIFrame(messageData);
463 break;
464 case 'init':
465 resizeIFrame();
466 callback('initCallback',messageData.iframe);
467 break;
468 default:
469 resizeIFrame();
470 }
471 }
472
473 function hasSettings(iframeId) {
474 var retBool = true;

Callers 1

iFrameListenerFunction · 0.85

Calls 13

firstRunFunction · 0.85
chkCallbackFunction · 0.85
closeIFrameFunction · 0.85
forwardMsgFromIFrameFunction · 0.85
getMsgBodyFunction · 0.85
scrollRequestFromChildFunction · 0.85
sendPageInfoToIframeFunction · 0.85
startPageInfoMonitorFunction · 0.85
stopPageInfoMonitorFunction · 0.85
findTargetFunction · 0.70
resetIFrameFunction · 0.70
resizeIFrameFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…