diff --git a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js index 5a974b78d0bbd08f19e71f55f798e84ed172d05a..d33627f350adc19b7a83342d5a78aeaed1fcfc56 100644 --- a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js +++ b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js @@ -276,7 +276,8 @@ item; for (item in gadget.constructor.prototype) { if (gadget.constructor.prototype.hasOwnProperty(item)) { - if (!(/__/).test(item)) { + if (!(/__/).test(item) && (item !== 'constructor') && + (typeof gadget[item] === "function")) { declared_method_dict[item] = gadget[item]; } } diff --git a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml index 485abd06b7cf1aaf868fc3ff7c97fa3b48f0c304..3197b2ec6d48248001fa3c9f29a0286229b32dde 100644 --- a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml +++ b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml @@ -230,7 +230,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>968.15711.48104.9642</string> </value> + <value> <string>968.19656.34499.5171</string> </value> </item> <item> <key> <string>state</string> </key> @@ -248,7 +248,7 @@ </tuple> <state> <tuple> - <float>1529078407.64</float> + <float>1529315086.55</float> <string>UTC</string> </tuple> </state>