incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r448795 - /incubator/xap/trunk/src/xap/session/DeclarativeArgumentParser.js
Date Fri, 22 Sep 2006 04:09:24 GMT
Author: mturyn
Date: Thu Sep 21 21:09:23 2006
New Revision: 448795

URL: http://svn.apache.org/viewvc?view=rev&rev=448795
Log:
Reintroduced binding shortcut syntax resolution in anticipation of needing it soon.

Modified:
    incubator/xap/trunk/src/xap/session/DeclarativeArgumentParser.js

Modified: incubator/xap/trunk/src/xap/session/DeclarativeArgumentParser.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/session/DeclarativeArgumentParser.js?view=diff&rev=448795&r1=448794&r2=448795
==============================================================================
--- incubator/xap/trunk/src/xap/session/DeclarativeArgumentParser.js (original)
+++ incubator/xap/trunk/src/xap/session/DeclarativeArgumentParser.js Thu Sep 21 21:09:23 2006
@@ -31,6 +31,7 @@
 Xap.require("xap.util.Exception");
 Xap.require("xap.util.Character");
 Xap.require("xap.util.LogFactory");
+Xap.require("xap.util.Hashtable");
 
 
 /** 
@@ -82,6 +83,7 @@
  */ 
 xap.session.DeclarativeArgumentParser = function( session ) {
 	this._session = session;
+	this._functionShortcuts = new xap.util.Hashtable() ;
 }
 
 /** @private */
@@ -190,14 +192,15 @@
 			   //TODO trim is needed here
 				var mco = arg.trim();
 				    
-				   //TODO data binding stuff we had before and probably
-				   //want again at some point?
+				//TODO data binding stuff we had before and probably
+				//want again at some point?
 //				//we might have something like *(...)
 //				//which is a shortcut for something else
-//				String longcutText = (String)_functionShortcuts.get(mco);
-//				if (longcutText!=null){
-//					mco = longcutText;
-//				}
+				/*String*/
+				var longcutText = this._functionShortcuts.get(mco);
+				if (longcutText!=null){
+					mco = longcutText;
+				}
 
 //TODO we need to do more sharing of functionaltiy like checking validity of 
 //container:name.method()



Mime
View raw message