Author: zhen
Date: Tue Mar  4 12:22:17 2008
New Revision: 633622

URL: http://svn.apache.org/viewvc?rev=633622&view=rev
Log:
Reverted accidentally committed changes in r633618.


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

Modified: incubator/shindig/trunk/features/features.txt
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/features.txt?rev=633622&r1=633621&r2=633622&view=diff
==============================================================================
--- incubator/shindig/trunk/features/features.txt (original)
+++ incubator/shindig/trunk/features/features.txt Tue Mar  4 12:22:17 2008
@@ -15,5 +15,4 @@
 features/settitle/feature.xml
 features/skins/feature.xml
 features/tabs/feature.xml
-features/drag/feature.xml
 features/views/feature.xml

Modified: incubator/shindig/trunk/features/flash/flash.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/flash/flash.js?rev=633622&r1=633621&r2=633622&view=diff
==============================================================================
--- incubator/shindig/trunk/features/flash/flash.js (original)
+++ incubator/shindig/trunk/features/flash/flash.js Tue Mar  4 12:22:17 2008
@@ -65,6 +65,7 @@
  * @param {String} swfUrl SWF URL.
  * @param {String | Object} swfContainer The id or object reference of an
  *     existing html container element.
+ * @param {Number} swfVersion Minimal Flash Player version required.
  * @param {Object} opt_params An optional object that may contain any valid 
html
  *     parameter. All attributes will be passed through to the flash movie on
  *     creation.
@@ -72,7 +73,7 @@
  *
  * @member gadgets.flash
  */
-gadgets.flash.embedFlash = function(swfUrl, swfContainer, swfVersion, 
+gadgets.flash.embedFlash = function(swfUrl, swfContainer, swfVersion,
     opt_params) {
   switch (typeof swfContainer) {
     case 'string':

Modified: incubator/shindig/trunk/features/tabs/tabs.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/tabs/tabs.js?rev=633622&r1=633621&r2=633622&view=diff
==============================================================================
--- incubator/shindig/trunk/features/tabs/tabs.js (original)
+++ incubator/shindig/trunk/features/tabs/tabs.js Tue Mar  4 12:22:17 2008
@@ -190,6 +190,10 @@
  * @return {String} DOM id of the tab container.
  */
 gadgets.TabSet.prototype.addTab = function(tabName, opt_params) {
+  if (typeof opt_params === 'string') {
+    opt_params = {contentContainer: arguments[1], callback: arguments[2]};
+  }
+
   var params = opt_params || {};
 
   var tabIndex = -1;
@@ -634,14 +638,3 @@
   return this.addTab(tabName, {callback: callback});
 };
 
-(function(){
-  var addTab_ = _IG_Tabs.prototype.addTab;
-  _IG_Tabs.prototype.addTab = function(tabName) {
-    if (typeof arguments[1] === 'string') {
-      addTab_.call(this, tabName,
-                   {contentContainer: arguments[1], callback: arguments[2]});
-    } else {
-      addTab_.apply(this, arguments);
-    }
-  };
-})();


Reply via email to