incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r446718 - /incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js
Date Fri, 15 Sep 2006 20:32:26 GMT
Author: mturyn
Date: Fri Sep 15 13:32:26 2006
New Revision: 446718

URL: http://svn.apache.org/viewvc?view=rev&rev=446718
Log:
Changed scoping of "attr" in a couple of for() loops over attributes from global to local.

Modified:
    incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js

Modified: incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js?view=diff&rev=446718&r1=446717&r2=446718
==============================================================================
--- incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js (original)
+++ incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js Fri Sep 15 13:32:26 2006
@@ -114,7 +114,7 @@
     	this._currentParent.appendChild( el );
     }
     this._currentParent = el;
-    for ( attr in attributes ) {
+    for ( var attr in attributes ) {
     	el.setAttribute( attr, attributes[attr] );
     }
 }
@@ -180,7 +180,7 @@
 
 xap.xml.sax.SaxContentHandler.prototype._processNamespaceDeclarations = function( attributes
) { 
 	var namespaceStackFrame = null;
-	for ( attr in attributes ) {
+	for ( var attr in attributes ) {
 		if (attr.indexOf("xmlns")==0){
     		if (namespaceStackFrame==null){
     			namespaceStackFrame = new xap.xml.sax.SaxContentHandler.NamespaceStackFrame ();



Mime
View raw message