You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by zh...@apache.org on 2008/03/07 21:17:56 UTC

svn commit: r634801 - /incubator/shindig/trunk/features/tabs/tabs.js

Author: zhen
Date: Fri Mar  7 12:17:55 2008
New Revision: 634801

URL: http://svn.apache.org/viewvc?rev=634801&view=rev
Log:
Fixed SHINDIG-113 (addTab fails when the second parameter is a string.)


Modified:
    incubator/shindig/trunk/features/tabs/tabs.js

Modified: incubator/shindig/trunk/features/tabs/tabs.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/tabs/tabs.js?rev=634801&r1=634800&r2=634801&view=diff
==============================================================================
--- incubator/shindig/trunk/features/tabs/tabs.js (original)
+++ incubator/shindig/trunk/features/tabs/tabs.js Fri Mar  7 12:17:55 2008
@@ -191,7 +191,8 @@
  */
 gadgets.TabSet.prototype.addTab = function(tabName, opt_params) {
   if (typeof opt_params === 'string') {
-    opt_params = {contentContainer: arguments[1], callback: arguments[2]};
+    opt_params = {contentContainer: document.getElementById(arguments[1]),
+                  callback: arguments[2]};
   }
 
   var params = opt_params || {};