{"record":{"id":"000eaf1cf514ccda","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-000eaf","errorCode":null,"errorMessage":"The method you called is not defined","messagePattern":"The method you called is not defined","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/definitions/modules/accordion.js","lineNumber":588,"sourceCode":"\n  exclusive       : true,  // whether a single accordion content panel should be open at once\n  collapsible     : true,  // whether accordion content can be closed\n  closeNested     : false, // whether nested content should be closed when a panel is closed\n  animateChildren : true,  // whether children opacity should be animated\n\n  duration        : 350, // duration of animation\n  easing          : 'easeOutQuad', // easing equation for animation\n\n  onOpening       : function(){}, // callback before open animation\n  onClosing       : function(){}, // callback before closing animation\n  onChanging      : function(){}, // callback before closing or opening animation\n\n  onOpen          : function(){}, // callback after open animation\n  onClose         : function(){}, // callback after closing animation\n  onChange        : function(){}, // callback after closing or opening animation\n\n  error: {\n    method : 'The method you called is not defined'\n  },\n\n  className   : {\n    active    : 'active',\n    animating : 'animating'\n  },\n\n  selector    : {\n    accordion : '.accordion',\n    title     : '.title',\n    trigger   : '.title',\n    content   : '.content'\n  }\n\n};\n\n// Adds easing\n$.extend( $.easing, {","sourceCodeStart":570,"sourceCodeEnd":606,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/accordion.js#L570-L606","documentation":"invoke() could not resolve an accordion behavior method and logged it via console.error prefixed 'Accordion:'. Valid accordion behaviors include 'open', 'close', 'toggle' (each optionally with an index), and 'destroy'.","triggerScenarios":"A typo such as $('.ui.accordion').accordion('opne', 1), or a method that does not exist on the accordion module.","commonSituations":"Version skew where a method was renamed; wrong method name copied from memory.","solutions":["Check the method name against the accordion behavior API ('open', 'close', 'toggle' with an optional index, 'destroy')","Confirm the index argument is an integer when using 'open'/'close'/'toggle'"],"exampleFix":"// before\n$('.ui.accordion').accordion('opne', 1);\n// after\n$('.ui.accordion').accordion('open', 1);","handlingStrategy":"validation","validationCode":"var ACCORDION_BEHAVIORS = ['open','close','toggle','destroy'];\nfunction isAccordionBehavior(name, idx) {\n  return ACCORDION_BEHAVIORS.indexOf(name) !== -1\n      && (idx === undefined || Number.isInteger(idx));\n}\nif (isAccordionBehavior(method, index)) {\n  $('.ui.accordion').accordion(method, index);\n}","typeGuard":"function isAccordionMethod(name) {\n  return /^(open|close|toggle|destroy)$/.test(name);\n}","tryCatchPattern":null,"preventionTips":["Restrict calls to open/close/toggle/destroy and pass an integer index where required","Wrap the plugin in a typed helper so invalid methods are rejected at the call site","Re-check behavior names after a Semantic UI version bump"],"tags":["accordion","semantic-ui","api-misuse","typo"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}