[Tool][Generator] don't check constructor used only in internally
authorpius.lee <pius.lee@samsung.com>
Thu, 29 Jan 2015 14:28:54 +0000 (23:28 +0900)
committerpius.lee <pius.lee@samsung.com>
Thu, 29 Jan 2015 14:28:54 +0000 (23:28 +0900)
Change-Id: I128eb446fca7356dd93e7e1e332688e858fc8472
Signed-off-by: pius.lee <pius.lee@samsung.com>
tools/skeleton_generator/tpl/tpl_api.js

index 88de9529014a60bb01fb5febdb200c62f914c012..40881ef743d5fbaca0a82a412454814c34b68fa8 100644 (file)
@@ -86,7 +86,9 @@ function {{iface.name}}(
     {%- endfor -%}
     {%- endif -%}) {
   // constructor of {{iface.name}}
+  {% if iface.constructor %}
   validator_.isConstructorCall(this, {{iface.name}});
+  {% endif %}
 
   {% for attribute in iface.getTypes('Attribute') %}
     {% if attribute.existIn == 'ctor' %}