You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by wo...@apache.org on 2011/07/14 20:59:35 UTC

svn commit: r1146849 - /shindig/trunk/features/src/main/javascript/features/container.gadget/gadget_holder.js

Author: woodser
Date: Thu Jul 14 18:59:34 2011
New Revision: 1146849

URL: http://svn.apache.org/viewvc?rev=1146849&view=rev
Log:
Committing patch "gadget_holder.getIframeElement fails to return the iframe element when pubsub-2 feature is in use": https://reviews.apache.org/r/983/

Modified:
    shindig/trunk/features/src/main/javascript/features/container.gadget/gadget_holder.js

Modified: shindig/trunk/features/src/main/javascript/features/container.gadget/gadget_holder.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/container.gadget/gadget_holder.js?rev=1146849&r1=1146848&r2=1146849&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/container.gadget/gadget_holder.js (original)
+++ shindig/trunk/features/src/main/javascript/features/container.gadget/gadget_holder.js Thu Jul 14 18:59:34 2011
@@ -147,9 +147,10 @@ osapi.container.GadgetHolder.prototype.g
 
 /**
  * @return {Node} The iframe element containing gadget.
+ * @see osapi.container.GadgetHolder.prototype.doOaaIframeHtml_ and org.openajax.hub-2.0.5/iframe.js:createIframe()
  */
 osapi.container.GadgetHolder.prototype.getIframeElement = function() {
-  return this.el_.firstChild;
+  return this.el_.getElementsByTagName('iframe')[0];
 };