Author: zhen
Date: Mon Jan 28 15:32:38 2008
New Revision: 616106

URL: http://svn.apache.org/viewvc?rev=616106&view=rev
Log:
Fixed the reference to gadgets.ifpc_ in settitle.js.


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

Modified: incubator/shindig/trunk/features/settitle/settitle.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/settitle/settitle.js?rev=616106&r1=616105&r2=616106&view=diff
==============================================================================
--- incubator/shindig/trunk/features/settitle/settitle.js (original)
+++ incubator/shindig/trunk/features/settitle/settitle.js Mon Jan 28 15:32:38 
2008
@@ -34,7 +34,7 @@
 gadgets.window.setTitle = function(title) {
   var modId = 'remote_module_' + (new gadgets.Prefs()).getModuleId();
   var ifpcRelay = gadgets.util.getUrlParameters().parent || '';
-  gadgets.IFPC_.call(modId, 'set_title', [modId, title], ifpcRelay, null, '');
+  gadgets.ifpc_.call(modId, 'set_title', [modId, title], ifpcRelay, null, '');
 };
 
 // Alias for legacy code

Modified: incubator/shindig/trunk/features/tabs/tabs.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/tabs/tabs.js?rev=616106&r1=616105&r2=616106&view=diff
==============================================================================
--- incubator/shindig/trunk/features/tabs/tabs.js (original)
+++ incubator/shindig/trunk/features/tabs/tabs.js Mon Jan 28 15:32:38 2008
@@ -43,7 +43,10 @@
  * @constructor
  */
 gadgets.Tab = function(handle) {
-  // TODO
+  this.handle_ = handle;
+  this.td_ = null;
+  this.contentContainer_ = null;
+  this.callback_ = null;
 };
 
 /**
@@ -51,7 +54,7 @@
  * @return {String} The label of the tab.
  */
 gadgets.Tab.prototype.getName = function() {
-  // TODO
+  return this.td_.innerHTML;
 };
 
 /**
@@ -59,7 +62,7 @@
  * @return {Element} The HTML element of the tab's label.
  */
 gadgets.Tab.prototype.getNameContainer = function() {
-  // TODO
+  return this.td_;
 };
 
 /**
@@ -67,7 +70,7 @@
  * @return {Element} The HTML element of the content container.
  */
 gadgets.Tab.prototype.getContentContainer = function() {
-  // TODO
+  return this.contentContainer_;
 };
 
 /**
@@ -75,7 +78,7 @@
  * @return {Function} The callback function of the tab.
  */
 gadgets.Tab.prototype.getCallback = function() {
-  // TODO
+  return this.callback_;
 };
 
 /**
@@ -83,7 +86,13 @@
  * @return {Number} The tab's index.
  */
 gadgets.Tab.prototype.getIndex = function() {
-  // TODO
+  var tabs = this.handle_.getTabs();
+  for (var i = 0; i < tabs.length; ++i) {
+    if (this === tabs[i]) {
+      return i;
+    }
+  }
+  return -1;
 };
 
 /**
@@ -164,7 +173,7 @@
  * @return {Array.&lt;gadgets.Tab&gt;} Array of all existing tab objects.
  */
 gadgets.TabSet.prototype.getTabs = function() {
-  // TODO
+  return this.tabs_;
 };
 
 /**


Reply via email to