Commits

paj  committed c8792b1

Tidy up XHRDataSource a little

  • Participants
  • Parent commits 7d9bd26

Comments (0)

Files changed (1)

File tw2/yui/templates/xhrdatasource.html

 <script type="text/javascript">
-    tw2_yui_datasources = {}; // TBD: only if undefined
-    var oDS = new YAHOO.util.XHRDataSource("${w.get_link()}", $w.options);
-    tw2_yui_datasources["$w.compound_id"] = oDS;
+    if(typeof(tw2_yui_datasources) == "undefined") tw2_yui_datasources = {};
+    tw2_yui_datasources["$w.compound_id"] = new YAHOO.util.XHRDataSource("${w.get_link()}", $w.options);
 </script>