incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r486490 - /incubator/xap/trunk/src/google/xpath.js
Date Wed, 13 Dec 2006 04:38:52 GMT
Author: mturyn
Date: Tue Dec 12 20:38:51 2006
New Revision: 486490

URL: http://svn.apache.org/viewvc?view=rev&rev=486490
Log:
>From Rob Gagne

Change of a for XX in XX to regular for loop; this was done to resolve an issue with other
libraries adding elements to Array.

Modified:
    incubator/xap/trunk/src/google/xpath.js

Modified: incubator/xap/trunk/src/google/xpath.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/google/xpath.js?view=diff&rev=486490&r1=486489&r2=486490
==============================================================================
--- incubator/xap/trunk/src/google/xpath.js (original)
+++ incubator/xap/trunk/src/google/xpath.js Tue Dec 12 20:38:51 2006
@@ -1632,7 +1632,7 @@
 google.makeSimpleExpr2 = function(expr) {
   var steps = expr.split('/');
   var c = new LocationExpr();
-  for (var i in steps) {
+  for ( var i = 0; i < steps.length; i ++ ){
     var a = new NodeTestName(steps[i]);
     var b = new StepExpr('child', a);
     c.appendStep(b);



Mime
View raw message