MCPcopy
hub / github.com/basecamp/trix / if

Function if

action_text-trix/app/assets/javascripts/trix.js:5878–5880  ·  view source on GitHub ↗
(call && (typeof call === "object" || typeof call === "function"))

Source from the content-addressed store, hash-verified

5876 }
5877 function _possibleConstructorReturn(self, call) {
5878 if (call && (typeof call === "object" || typeof call === "function")) {
5879 return call;
5880 } else if (call !== void 0) {
5881 throw new TypeError("Derived constructors may only return object or undefined");
5882 }
5883 return _assertThisInitialized(self);

Callers 1

trix.jsFile · 0.85

Calls 15

differsInWhitespaceFunction · 0.85
makeEditableFunction · 0.85
addAccessibilityRoleFunction · 0.85
autofocusFunction · 0.85
attachmentIsManagedMethod · 0.80
refreshAttachmentsMethod · 0.80
getBlockMethod · 0.80
decreaseListLevelMethod · 0.80
setSelectionMethod · 0.80

Tested by

no test coverage detected