incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r573905 - /incubator/xap/trunk/codebase/src/xap/data/datasource/ObjectDataSource.js
Date Sat, 08 Sep 2007 20:42:41 GMT
Author: jmargaris
Date: Sat Sep  8 13:42:41 2007
New Revision: 573905

URL: http://svn.apache.org/viewvc?rev=573905&view=rev
Log:
make 'this' work with non-objects like strngs

Modified:
    incubator/xap/trunk/codebase/src/xap/data/datasource/ObjectDataSource.js

Modified: incubator/xap/trunk/codebase/src/xap/data/datasource/ObjectDataSource.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/data/datasource/ObjectDataSource.js?rev=573905&r1=573904&r2=573905&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/data/datasource/ObjectDataSource.js (original)
+++ incubator/xap/trunk/codebase/src/xap/data/datasource/ObjectDataSource.js Sat Sep  8 13:42:41
2007
@@ -76,6 +76,10 @@
  * do something like 'this.employees' not just 'employees'
  */
 xap.data.datasource.ObjectDataSource.prototype.evalOnObject = function( evalText, object){
+	//if the text is just "this" return, this will work with strings
+	if (text=='this'){
+		return object;
+	}
 	if (!object._eval){
 		object._eval = function( text ){
 			return eval(text);



Mime
View raw message