You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2010/04/28 20:40:48 UTC

svn commit: r939048 - /shindig/branches/1.0.x-incubating/features/src/main/javascript/features/views/views.js

Author: lindner
Date: Wed Apr 28 18:40:48 2010
New Revision: 939048

URL: http://svn.apache.org/viewvc?rev=939048&view=rev
Log:
SHINDIG-1319 | Patch from Tim Wintle | requestNavigateTo support passing string for 1.0.x

Modified:
    shindig/branches/1.0.x-incubating/features/src/main/javascript/features/views/views.js

Modified: shindig/branches/1.0.x-incubating/features/src/main/javascript/features/views/views.js
URL: http://svn.apache.org/viewvc/shindig/branches/1.0.x-incubating/features/src/main/javascript/features/views/views.js?rev=939048&r1=939047&r2=939048&view=diff
==============================================================================
--- shindig/branches/1.0.x-incubating/features/src/main/javascript/features/views/views.js (original)
+++ shindig/branches/1.0.x-incubating/features/src/main/javascript/features/views/views.js Wed Apr 28 18:40:48 2010
@@ -211,8 +211,11 @@ gadgets.views = function() {
      *                 defaults to the current owner.
      */
     requestNavigateTo : function(view, opt_params, opt_ownerId) {
+      if (typeof view !== "string") {
+        view = view.getName();
+      }
       gadgets.rpc.call(
-          null, "requestNavigateTo", null, view.getName(), opt_params, opt_ownerId);
+          null, "requestNavigateTo", null, view, opt_params, opt_ownerId);
     },
 
     /**