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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Apr 14 11:46:35 EDT 2009


Author: eallen
Date: 2009-04-14 11:46:34 -0400 (Tue, 14 Apr 2009)
New Revision: 3286

Modified:
   mgmt/trunk/wooly/resources/wooly.js
Log:
Added session method to get current location.hash as a object

Modified: mgmt/trunk/wooly/resources/wooly.js
===================================================================
--- mgmt/trunk/wooly/resources/wooly.js	2009-04-14 15:44:07 UTC (rev 3285)
+++ mgmt/trunk/wooly/resources/wooly.js	2009-04-14 15:46:34 UTC (rev 3286)
@@ -654,6 +654,13 @@
             return new Branch(url);
         }
 
+        this.hash = function () {
+            var h = window.location.hash;
+            if ((h.length > 0) && (h.substring(0, 1) == "#"))
+                h = h.substring(1, h.length );
+            return wooly.session.branch(h);
+        }
+
         /* convert string query into cumin session object */
         function Branch (s) {
 




More information about the rhmessaging-commits mailing list