[rhmessaging-commits] rhmessaging commits: r3779 - mgmt/trunk/wooly/resources.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Jan 11 10:46:51 EST 2010


Author: eallen
Date: 2010-01-11 10:46:51 -0500 (Mon, 11 Jan 2010)
New Revision: 3779

Modified:
   mgmt/trunk/wooly/resources/wooly.js
Log:
Fix problem when no url is passed to session.branch(). Use window.location.href (string) instead of window.location (object).  

Modified: mgmt/trunk/wooly/resources/wooly.js
===================================================================
--- mgmt/trunk/wooly/resources/wooly.js	2010-01-11 15:00:27 UTC (rev 3778)
+++ mgmt/trunk/wooly/resources/wooly.js	2010-01-11 15:46:51 UTC (rev 3779)
@@ -718,7 +718,7 @@
 
     function Session() {
         this.branch = function (url) {
-            if (arguments.length == 0) url = window.location;
+            if (arguments.length == 0) url = window.location.href + "";
             return new Branch(url);
         }
 



More information about the rhmessaging-commits mailing list