Related to Issue 0026723 : Clears javascript console error
authorShankar Balachandran <shankar.balachandran@openbravo.com>
Mon, 02 Jun 2014 17:38:18 +0530
changeset 23517 556ae52c73a2
parent 23516 14120452111d
child 23518 26be6a6858c0
Related to Issue 0026723 : Clears javascript console error

transformData is called only when the target contains the method.
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Wed Jun 04 14:16:27 2014 +0530
+++ b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Mon Jun 02 17:38:18 2014 +0530
@@ -116,7 +116,10 @@
   dataArrived: function (parentNode) {
     var children = this.getChildren(parentNode),
         target = window[this.componentId];
-    target.transformData(children);
+    if (target.transformData) {
+      target.transformData(children);
+    }
+    this.Super('dataArrived', arguments);
   }
 });