You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/08/29 00:35:11 UTC

svn commit: r570597 - in /incubator/xap/trunk/codebase/src/xap/xml: firefox/Parser.js ie/Parser.js

Author: jmargaris
Date: Tue Aug 28 17:35:11 2007
New Revision: 570597

URL: http://svn.apache.org/viewvc?rev=570597&view=rev
Log:
renamed _parse to make more sense and be "public"

Modified:
    incubator/xap/trunk/codebase/src/xap/xml/firefox/Parser.js
    incubator/xap/trunk/codebase/src/xap/xml/ie/Parser.js

Modified: incubator/xap/trunk/codebase/src/xap/xml/firefox/Parser.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/xml/firefox/Parser.js?rev=570597&r1=570596&r2=570597&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/xml/firefox/Parser.js (original)
+++ incubator/xap/trunk/codebase/src/xap/xml/firefox/Parser.js Tue Aug 28 17:35:11 2007
@@ -39,7 +39,7 @@
 		throw new xap.xml.firefox.ParserException(xap.xml.firefox.ParserException.PARSER_EXCEPTION, 
 					["Parser Exception Occured", exception], null);
 	}
-	return this._parse(nativeDoc, baseUrl);
+	return this.importNativeDocument(nativeDoc, baseUrl);
 }
 
 
@@ -47,7 +47,7 @@
  * Called to get a XML parser.  Will determine how which parser to 
  * use either the Native Firefox parser or the Sax Parser for the rest of the browsers
  */
-xap.xml.firefox.Parser.prototype._parse = function(nativeDoc, baseUrl){
+xap.xml.firefox.Parser.prototype.importNativeDocument = function(nativeDoc, baseUrl){
 	
 	//check to see if there was an error parsing the document.
 	//if there was an error in the document it returns a valid document

Modified: incubator/xap/trunk/codebase/src/xap/xml/ie/Parser.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/xml/ie/Parser.js?rev=570597&r1=570596&r2=570597&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/xml/ie/Parser.js (original)
+++ incubator/xap/trunk/codebase/src/xap/xml/ie/Parser.js Tue Aug 28 17:35:11 2007
@@ -33,7 +33,7 @@
 	nativeDoc.async="false";
 	nativeDoc.loadXML(xmlContent);
 	
-	return this._parse(nativeDoc, baseUrl);
+	return this.importNativeDocument(nativeDoc, baseUrl);
 }
 
 
@@ -41,7 +41,7 @@
  * Called to get a XML parser.  Will determine how which parser to 
  * use either the Native IE parser or the Sax Parser for the rest of the browsers
  */
-xap.xml.ie.Parser.prototype._parse = function(nativeDoc, baseUrl){
+xap.xml.ie.Parser.prototype.importNativeDocument = function(nativeDoc, baseUrl){
 	
 	//check to see if there was an error parsing the document.
 	if (nativeDoc.parseError.errorCode != 0){