Skip to content

Commit

Permalink
refactor: Consider ManagedObject as base class for bind*
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Feb 3, 2025
1 parent e3605a6 commit d6605ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linter/ui5Types/SourceFileLinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ export default class SourceFileLinter {
this.#analyzePropertyBindings(node.arguments[1], ["type", "formatter"]);
} else if (symbolName.startsWith("bind") &&
nodeType.symbol?.declarations?.some((declaration) =>
this.isUi5ClassDeclaration(declaration, "sap/ui/core/Control")) &&
this.isUi5ClassDeclaration(declaration, "sap/ui/base/ManagedObject")) &&
node.arguments[0] && ts.isObjectLiteralExpression(node.arguments[0])) {
// Setting names in UI5 are case sensitive. So, we're not sure of the exact name of the property.
// Check decapitalized version of the property name as well.
Expand Down

0 comments on commit d6605ba

Please sign in to comment.