{"record":{"id":"96b3c2db5376834f","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-96b3c2","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":"error","filePath":"src/definitions/behaviors/visibility.js","lineNumber":1305,"sourceCode":"  onFixed                : function() {},\n  onUnfixed              : function() {},\n\n  // utility callbacks\n  onUpdate               : false, // disabled by default for performance\n  onRefresh              : function(){},\n\n  metadata : {\n    src: 'src'\n  },\n\n  className: {\n    fixed       : 'fixed',\n    placeholder : 'placeholder',\n    visible     : 'visible'\n  },\n\n  error : {\n    method  : 'The method you called is not defined.',\n    visible : 'Element is hidden, you must call refresh after element becomes visible'\n  }\n\n};\n\n})( jQuery, window, document );\n","sourceCodeStart":1287,"sourceCodeEnd":1312,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/behaviors/visibility.js#L1287-L1312","documentation":"Generic Semantic UI method-not-found error thrown by the visibility behavior's invoke dispatcher (visibility.js:1164). Calling $('.selector').visibility('nonExistent') walks the module internals and, finding no matching function, logs this error.","triggerScenarios":"Invoking a misspelled or unavailable visibility method, e.g. $('.el').visibility('refesh'), or calling a method from a newer version on an older build.","commonSituations":"Typos; copy-pasting code from docs of a different Semantic UI version; calling private methods without the correct prefix; misusing visibility methods that belong to sticky instead.","solutions":["Verify the method name against the Semantic UI Visibility docs for the installed version.","Use the canonical methods: refresh, destroy, disable, enable, etc.","Reinstall/rebuild Semantic UI if a known method is unexpectedly missing."],"exampleFix":"// before\n$('.ad').visibility('refesh');\n// after\n$('.ad').visibility('refresh');","handlingStrategy":"type-guard","validationCode":"var VIS_METHODS = ['refresh','destroy','disable','enable'];\nfunction safeVisCall($el, method) {\n  if (VIS_METHODS.indexOf(method) === -1) { console.warn('Unknown visibility method:', method); return; }\n  return $el.visibility(method);\n}","typeGuard":"function isKnownVisibilityMethod(name) {\n  return ['refresh','destroy','disable','enable'].indexOf(name) !== -1;\n}","tryCatchPattern":null,"preventionTips":["Centralize visibility method calls behind a wrapper that whitelists names.","Pin the Semantic UI version and verify method names from those docs."],"tags":["semantic-ui","method-not-found","visibility"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}