@@ -776,13 +776,13 @@ component {
776776 if (Left (local .before , 5 ) == " this." ) {
777777
778778 // Handle `this.someMethod()` or `this.someVariable`
779- var key = Mid (local .before , 6 ); // Extract the part after "this."
779+ local . key = Mid (local .before , 6 , len ( local . before ) ); // Extract the part after "this."
780780 local .beforeRegexPattern = " ^(.*?)\(" ;
781- local .beforeMatch = REFindNoCase (local .beforeRegexPattern , key , 1 , true );
781+ local .beforeMatch = REFindNoCase (local .beforeRegexPattern , local . key , 1 , true );
782782
783783 if (local .beforeMatch .pos [1 ] > 0 ) {
784- local .beforeParenthesis = Mid (key , 1 , local .beforeMatch .len [1 ] - 1 );
785- local .afterParenthesis = Mid (key , local .beforeMatch .len [1 ] + 1 , len (key ));
784+ local .beforeParenthesis = Mid (local . key , 1 , local .beforeMatch .len [1 ] - 1 );
785+ local .afterParenthesis = Mid (local . key , local .beforeMatch .len [1 ] + 1 , len (local . key ));
786786 };
787787
788788 if (structKeyExists (local , ' afterParenthesis' )){
@@ -811,11 +811,11 @@ component {
811811 }
812812 }
813813
814- if (StructKeyExists (this , key )) {
815- if (IsCustomFunction (this [key ])) {
816- local .rv = this [key ](); // Call the function
814+ if (StructKeyExists (this , local . key )) {
815+ if (IsCustomFunction (this [local . key ])) {
816+ local .rv = this [local . key ](); // Call the function
817817 } else {
818- local .rv = this [key ]; // Return the variable value
818+ local .rv = this [local . key ]; // Return the variable value
819819 }
820820 }
821821
0 commit comments