You've already forked v8-code-style
mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-12-02 17:13:44 +02:00
724 B
724 B
Attachable event handler name
Programmatically added event handler name should match pattern: Attachable_ prefix
Noncompliant Code Example
// Parameters:
// Item - FormField
Procedure Incorrect(Item)
Item.SetAction("OnChange", "IncorrectOnChange");
EndProcedure
Compliant Solution
// Parameters:
// Item - FormField
Procedure Correct(Item)
Item.SetAction("OnChange", "Attachable_CorrectOnChange");
EndProcedure