Skip to content

Commit

Permalink
Merge pull request #65 from QuickCorp/v2.3
Browse files Browse the repository at this point in the history
serviceClass is loaded only if a response-to attribute or responseTo …
  • Loading branch information
jeanmachuca committed Apr 25, 2021
2 parents ded8bf7 + 44c3168 commit 7633f2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,9 @@
var newComponent;
if (typeof __serviceClass !== "undefined"
&& (typeof __enable_service_class__ !== "undefined"
&& __enable_service_class__ === true)){
&& __enable_service_class__ === true)
&& (_response_to_data_ || _response_to_template_)
){
logger.info("Loading service "+_serviceClassName);
var serviceInstance = New(__serviceClass, {
data: data
Expand Down

0 comments on commit 7633f2e

Please sign in to comment.