shindig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lind...@apache.org
Subject svn commit: r1149419 - /shindig/trunk/features/src/main/javascript/features/embeddedexperiences/embedded_experiences_container.js
Date Fri, 22 Jul 2011 00:33:48 GMT
Author: lindner
Date: Fri Jul 22 00:33:48 2011
New Revision: 1149419

URL: http://svn.apache.org/viewvc?rev=1149419&view=rev
Log:
Patch from Ryan Baxter | osapi.container.Container.ee.navigate could call the callback with
the wrong information

Modified:
    shindig/trunk/features/src/main/javascript/features/embeddedexperiences/embedded_experiences_container.js

Modified: shindig/trunk/features/src/main/javascript/features/embeddedexperiences/embedded_experiences_container.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/embeddedexperiences/embedded_experiences_container.js?rev=1149419&r1=1149418&r2=1149419&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/embeddedexperiences/embedded_experiences_container.js
(original)
+++ shindig/trunk/features/src/main/javascript/features/embeddedexperiences/embedded_experiences_container.js
Fri Jul 22 00:33:48 2011
@@ -43,16 +43,16 @@
       var site = context.newGadgetSite(element);
       var gadgetUrl = dataModel.gadget;
 
-      context.preloadGadget(gadgetUrl, function(metadata) {
-        if (metadata[gadgetUrl] == null ||
-                (metadata[gadgetUrl] != null && metadata[gadgetUrl].error)) {
+      context.preloadGadget(gadgetUrl, function(result) {
+        if (result[gadgetUrl] == null ||
+                (result[gadgetUrl] != null && result[gadgetUrl].error)) {
           //There was an error preloading the gadget URL lets try and render the
           //URL EE if there is one
           if (dataModel.url != null) {
             navigateUrl_(element, dataModel, renderParams, opt_callback);
           }
           else if (opt_callback != null) {
-            opt_callback(site, metadata);
+            opt_callback(site, result[gadgetUrl]);
           }
         }
         else {



Mime
View raw message