[fusion-commits] r2377 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 5 11:34:56 EDT 2011
Author: madair
Date: 2011-05-05 08:34:56 -0700 (Thu, 05 May 2011)
New Revision: 2377
Modified:
trunk/lib/ApplicationDefinition.js
Log:
re #445: guard against calling $ with empty string
Modified: trunk/lib/ApplicationDefinition.js
===================================================================
--- trunk/lib/ApplicationDefinition.js 2011-05-04 16:02:55 UTC (rev 2376)
+++ trunk/lib/ApplicationDefinition.js 2011-05-05 15:34:56 UTC (rev 2377)
@@ -916,7 +916,7 @@
this.name = widgetName;
widget = eval("new Fusion.Widget."+this.type+"(this)");
widgetSet.addWidgetInstance(widget);
- if ($(this.name)) {
+ if (this.name.length>0 && $(this.name)) {
widget.id = this.name;
$(this.name).widget = widget;
if (widget.uiClass) {
More information about the fusion-commits
mailing list