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 2006/06/27 23:06:11 UTC

svn commit: r417619 [2/2] - in /incubator/xap/trunk/src: google/ xap/ xap/bridges/basic/ xap/bridges/google/ xap/bridges/zimbra/ xap/components/zimbra/ xap/macro/ xap/mco/ xap/requestservice/ xap/session/ xap/taghandling/ xap/util/ xap/xml/ xap/xml/dom...

Modified: incubator/xap/trunk/src/xap/util/IllegalArgumentException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/IllegalArgumentException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/IllegalArgumentException.js (original)
+++ incubator/xap/trunk/src/xap/util/IllegalArgumentException.js Tue Jun 27 16:06:08 2006
@@ -20,7 +20,7 @@
  * 
  * @author ikaplansky
  */
-function IllegalArgumentException( message, cause ) {
+IllegalArgumentException = function( message, cause ) {
 	BaseException.call(this, message, cause);
 }
 

Modified: incubator/xap/trunk/src/xap/util/IllegalStateException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/IllegalStateException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/IllegalStateException.js (original)
+++ incubator/xap/trunk/src/xap/util/IllegalStateException.js Tue Jun 27 16:06:08 2006
@@ -20,7 +20,7 @@
  * 
  * @author ikaplansky
  */
-function IllegalStateException( message, cause ) {
+IllegalStateException = function( message, cause ) {
 	BaseException.call( this, message, cause );
 }
 IllegalStateException.prototype = new BaseException;

Modified: incubator/xap/trunk/src/xap/util/LogFactory.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/LogFactory.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/LogFactory.js (original)
+++ incubator/xap/trunk/src/xap/util/LogFactory.js Tue Jun 27 16:06:08 2006
@@ -16,6 +16,7 @@
  */
  
  /**
+  * @constructor
  * TODO either replace or expand this to work with some other logging 
  * framework
  * 
@@ -25,6 +26,7 @@
  *
  * @author ikaplansky
  */
+LogFactory = function(){}
 
 //-----------------------------------------------------------------------
 // Class Variables.
@@ -34,7 +36,7 @@
 //-----------------------------------------------------------------------
 // Constructors.
 //-----------------------------------------------------------------------
-function LogFactory(){}
+
 
 //-----------------------------------------------------------------------
 // Public Class Methods.
@@ -65,12 +67,14 @@
 // Inner Classes.
 //-----------------------------------------------------------------------
               
-ConsoleLog.s_logWindow = null;
 
-function ConsoleLog( name ) {
+
+ConsoleLog = function( name ) {
     this._name = name;
     this._isDebug = true;    
 }
+
+ConsoleLog.s_logWindow = null;
     
 ConsoleLog.prototype.isDebug = function() {
     return this._isDebug; 

Modified: incubator/xap/trunk/src/xap/util/Profiler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/Profiler.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/Profiler.js (original)
+++ incubator/xap/trunk/src/xap/util/Profiler.js Tue Jun 27 16:06:08 2006
@@ -15,9 +15,7 @@
  *
  */
 
-function Profiler(){
-		
-}
+Profiler = function (){}
 
 Profiler._hashtable = new Hashtable();
 

Modified: incubator/xap/trunk/src/xap/util/ResourceDictionary.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/ResourceDictionary.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/ResourceDictionary.js (original)
+++ incubator/xap/trunk/src/xap/util/ResourceDictionary.js Tue Jun 27 16:06:08 2006
@@ -23,6 +23,8 @@
  * @author ikaplansky
  */
 
+ResourceDictionary = function() {}
+
 //-------------------------------------------------------------------
 // Class Variables.
 //-------------------------------------------------------------------
@@ -54,7 +56,3 @@
 	return "MsgId:" + msgId + ",class:" + className + ",args:" + args;
 }
  
-//-------------------------------------------------------------------
-// Constructors.
-//-------------------------------------------------------------------
-function ResourceDictionary() {}
\ No newline at end of file

Modified: incubator/xap/trunk/src/xap/util/UidProvider.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/UidProvider.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/UidProvider.js (original)
+++ incubator/xap/trunk/src/xap/util/UidProvider.js Tue Jun 27 16:06:08 2006
@@ -31,7 +31,7 @@
  * 
  * @param {String} seed A unique-ish string.
  */
-function UidProvider ( seed ) {
+UidProvider = function( seed ) {
     this._count = 0;
     if ( seed == null ) {
          this._seed = UidProvider._createSeed();

Modified: incubator/xap/trunk/src/xap/util/Utils.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/Utils.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/Utils.js (original)
+++ incubator/xap/trunk/src/xap/util/Utils.js Tue Jun 27 16:06:08 2006
@@ -20,8 +20,8 @@
  * 
  * @author ikaplansky
  */
-Utils.s_pathCache = null;
-function Utils(){}
+
+Utils = function(){}
 
 Utils.importFile = function( path ) {
 	if( Utils.s_pathCache == null ) {
@@ -35,4 +35,6 @@
 		"type=\"text/javascript\" src=\"" + path + "\"></script>";
 	document.write( scriptElement );
 }
+
+Utils.s_pathCache = null;
 

Modified: incubator/xap/trunk/src/xap/util/Vector.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/Vector.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/Vector.js (original)
+++ incubator/xap/trunk/src/xap/util/Vector.js Tue Jun 27 16:06:08 2006
@@ -21,7 +21,7 @@
  * 
  * @author ikaplansky
  */
-function Vector( initialCapacity, increment ) {
+Vector = function( initialCapacity, increment ) {
 	if ( initialCapacity == 0 ) {
 		initialCapacity = 100;
 	}

Modified: incubator/xap/trunk/src/xap/util/XapException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/XapException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/XapException.js (original)
+++ incubator/xap/trunk/src/xap/util/XapException.js Tue Jun 27 16:06:08 2006
@@ -41,7 +41,7 @@
  * classname-methodname
  */
 
-function XapException ( msgId, args, cause, location ) {
+XapException = function( msgId, args, cause, location ) {
 	// any time when this exception is subclassed, the XapException constructor
 	// gets called without any args to define the prototype of the subclass.
 	// we want to ignore those calls.

Modified: incubator/xap/trunk/src/xap/util/XmlUtils.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/XmlUtils.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/util/XmlUtils.js (original)
+++ incubator/xap/trunk/src/xap/util/XmlUtils.js Tue Jun 27 16:06:08 2006
@@ -20,22 +20,13 @@
  * 
  * @author ikaplansky
  */
+Xap.require("xap.util.Character");
 
-//-----------------------------------------------------------------------
-// Constants.
-//-----------------------------------------------------------------------
+
+XmlUtils = function(){}
 
 // We need to special-case validating tag names to include this
 XmlUtils.INDENTATION = "    ";
-
-//-----------------------------------------------------------------------
-// Constructors.
-//-----------------------------------------------------------------------
-function XmlUtils(){}
-
-//-----------------------------------------------------------------------
-// Public Methods.
-//-----------------------------------------------------------------------
 
 /**
  * Provides an indentation String for the given level of indentation.

Modified: incubator/xap/trunk/src/xap/xml/DocumentContainer.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/DocumentContainer.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/DocumentContainer.js (original)
+++ incubator/xap/trunk/src/xap/xml/DocumentContainer.js Tue Jun 27 16:06:08 2006
@@ -1,6 +1,6 @@
 	
 											
-function DocumentContainer( session ){
+DocumentContainer = function( session ){
 	Container.call(this, session);
 	
 	//add all the initial documents

Modified: incubator/xap/trunk/src/xap/xml/InvalidXmlException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/InvalidXmlException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/InvalidXmlException.js (original)
+++ incubator/xap/trunk/src/xap/xml/InvalidXmlException.js Tue Jun 27 16:06:08 2006
@@ -32,7 +32,7 @@
  * <p>
  * @author ikaplansky
  */
-function InvalidXmlException( msgId, args, cause ) {
+InvalidXmlException = function( msgId, args, cause ) {
     XapException.call( this, msgId, args, cause );
 }
 InvalidXmlException.prototype = new XapException;

Modified: incubator/xap/trunk/src/xap/xml/InvalidXmlExceptionRes.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/InvalidXmlExceptionRes.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/InvalidXmlExceptionRes.js (original)
+++ incubator/xap/trunk/src/xap/xml/InvalidXmlExceptionRes.js Tue Jun 27 16:06:08 2006
@@ -21,7 +21,7 @@
  * <p>
  * @author ikaplansky
  */
-function InvalidXmlExceptionRes() {
+InvalidXmlExceptionRes = function() {
 	this.messages = new Object();
 	this.messages[InvalidXmlException.MISSING_ATTRIBUTE_MSGID] = "Missing required attribute {0} on element: {1}";
 	this.messages[InvalidXmlException.NULL_LOCALNAME_MSGID] = "The localName supplied to the method is null, cannot create an Element with a null localName.";

Modified: incubator/xap/trunk/src/xap/xml/NamespaceHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/NamespaceHandler.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/NamespaceHandler.js (original)
+++ incubator/xap/trunk/src/xap/xml/NamespaceHandler.js Tue Jun 27 16:06:08 2006
@@ -40,7 +40,7 @@
  * <p>
  * @author ikaplansky
  */
-function NamespaceHandler() {}
+NamespaceHandler = function() {}
 
 //-----------------------------------------------------------------------
 // Public Methods.

Modified: incubator/xap/trunk/src/xap/xml/NamespaceHandlerManager.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/NamespaceHandlerManager.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/NamespaceHandlerManager.js (original)
+++ incubator/xap/trunk/src/xap/xml/NamespaceHandlerManager.js Tue Jun 27 16:06:08 2006
@@ -36,7 +36,7 @@
  * mappings to support new namespaces like data.
  *  
  */
-function NamespaceHandlerManager() {
+NamespaceHandlerManager = function() {
 	this._namespaceToHandlersMap = new Hashtable();
 	this._loadConfig();
 }

Modified: incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js (original)
+++ incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js Tue Jun 27 16:06:08 2006
@@ -39,7 +39,7 @@
   * this so you don't need xmodify on the first page.
   * 
   */
-function XalNamespaceHandler(){}
+XalNamespaceHandler = function(){}
 
 XalNamespaceHandler.prototype = new NamespaceHandler;
 

Modified: incubator/xap/trunk/src/xap/xml/dom/Document.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/Document.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/Document.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/Document.js Tue Jun 27 16:06:08 2006
@@ -51,7 +51,7 @@
   * @constructor
   * @param rootElement The root Element for the newly created document.
   */
-function Document( rootElement ) {
+Document = function( rootElement ) {
 	XDocument.call(this);
     this._rootElement = rootElement;
     this._documentEncoding = null;

Modified: incubator/xap/trunk/src/xap/xml/dom/XapElement.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/XapElement.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/XapElement.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/XapElement.js Tue Jun 27 16:06:08 2006
@@ -42,7 +42,7 @@
  * XapElement.
  * 
  */
-function XapElement(elementName, ownerDoc, parentEl, id, uidProvider ){
+XapElement = function(elementName, ownerDoc, parentEl, id, uidProvider ){
 	
 	XNode.call(this, DOM_ELEMENT_NODE, elementName, null, ownerDoc)
 	this._namespaceUri = null;

Modified: incubator/xap/trunk/src/xap/xml/dom/XapElementRes.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/XapElementRes.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/XapElementRes.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/XapElementRes.js Tue Jun 27 16:06:08 2006
@@ -19,7 +19,7 @@
  * @fileoverview A resource file for XapElement.js.
  * @class A resource file for XapElement.js.
  */
-function XapElementRes() {
+XapElementRes = function() {
 	this.messages = new Object();
 	this.messages[XapElement.CANNOT_SET_ID_ATTRIBUTE_WHEN_PART_OF_DOCUMENT] = "This element is part of a document.  The \"id\" attribute cannot be set on an element after it has been added to a document.";
 	this.messages[XapElement.CANT_REMOVE_KEY_VALUE_PAIR_FROM_ARRAY] = "Can''t remove key/value pair from an array of size {0} where the key index is specified as {1}.";

Modified: incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeEvent.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeEvent.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeEvent.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeEvent.js Tue Jun 27 16:06:08 2006
@@ -36,7 +36,7 @@
  * @param name The attribute name
  * @param newValue The new value for the attribute
  */
-function AttributeChangeEvent ( source, name, newValue ) {
+AttributeChangeEvent = function( source, name, newValue ) {
 	DomChangeEvent.call( this, source );
 	this._attributeName = name;
   	this._oldValue = source.getAttribute( this._attributeName );

Modified: incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeListener.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeListener.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeListener.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/AttributeChangeListener.js Tue Jun 27 16:06:08 2006
@@ -40,7 +40,7 @@
 //-----------------------------------------------------------------------
 // Constructors.
 //-----------------------------------------------------------------------
-function AttributeChangeListener(){}
+AttributeChangeListener = function(){}
 
 
 //-----------------------------------------------------------------------

Modified: incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedException.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedException.js Tue Jun 27 16:06:08 2006
@@ -28,7 +28,7 @@
  * by many of the DOM API methods.  When thrown, it signals that the operation
  * being performed on the Document was rejected by one of the event listeners.
  */
-function ChangeRejectedException( msgId, args, cause, event ) {
+ChangeRejectedException = function( msgId, args, cause, event ) {
     XapException.call( this, msgId, args, cause );
     this._event = event;
 }

Modified: incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedExceptionRes.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedExceptionRes.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedExceptionRes.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/ChangeRejectedExceptionRes.js Tue Jun 27 16:06:08 2006
@@ -21,7 +21,7 @@
  * 
  * @author ikaplansky
  */
-function ChangeRejectedExceptionRes() {
+ChangeRejectedExceptionRes = function() {
 	this.messages = new Object();
 	this.messages[ChangeRejectedException.CHANGE_ATTRIBUTE_TO_NULL_MSGID] = "One of the AttributeChangeListeners set the attribute value to null which is not allowed.";
 	this.messages[ChangeRejectedException.CHANGE_CHILD_TO_NULL_MSGID] = "One of the StructureChangeListeners set the child to null which cannot be placed in the DOM.";

Modified: incubator/xap/trunk/src/xap/xml/dom/events/DocumentOwnershipListener.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/DocumentOwnershipListener.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/DocumentOwnershipListener.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/DocumentOwnershipListener.js Tue Jun 27 16:06:08 2006
@@ -30,7 +30,7 @@
  * extend this object or implement that same method names.
  * 
  */
-function DocumentOwnershipListener() {}
+DocumentOwnershipListener = function() {}
 
 
 

Modified: incubator/xap/trunk/src/xap/xml/dom/events/DomChangeEvent.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/DomChangeEvent.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/DomChangeEvent.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/DomChangeEvent.js Tue Jun 27 16:06:08 2006
@@ -31,7 +31,7 @@
  * 
  * @author ikaplansky
  */
-function DomChangeEvent ( source ) {
+DomChangeEvent = function( source ) {
 	this._sourceElement = source;
 }
 

Modified: incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeEvent.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeEvent.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeEvent.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeEvent.js Tue Jun 27 16:06:08 2006
@@ -34,7 +34,7 @@
  *
  * @author ikaplansky
  */
-function StructureChangeEvent ( parent, changeNode, index ) {
+StructureChangeEvent = function( parent, changeNode, index ) {
 	DomChangeEvent.call( this, parent );
 
 	this._change = changeNode;

Modified: incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeListener.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeListener.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeListener.js (original)
+++ incubator/xap/trunk/src/xap/xml/dom/events/StructureChangeListener.js Tue Jun 27 16:06:08 2006
@@ -38,7 +38,7 @@
  * @see Document#addStructureChangeListener
  * @see Document#removeStructureChangeListener
  */
-function StructureChangeListener() {}
+StructureChangeListener = function() {}
 
 
 

Modified: incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentException.js (original)
+++ incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentException.js Tue Jun 27 16:06:08 2006
@@ -25,7 +25,7 @@
  * @fileoverview This exception is thrown when trying to parse an empty string.
  * @class This exception is thrown when trying to parse an empty string.
  */						
-function EmptyDocumentException( msgId, args, cause ){
+EmptyDocumentException = function( msgId, args, cause ){
 	ParserException.call( this, msgId, args, cause );
 }
 EmptyDocumentException.prototype = new ParserException() ;

Modified: incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentExceptionRes.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentExceptionRes.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentExceptionRes.js (original)
+++ incubator/xap/trunk/src/xap/xml/sax/EmptyDocumentExceptionRes.js Tue Jun 27 16:06:08 2006
@@ -19,7 +19,7 @@
  * @fileoverview A resource file for the EmptyDocumentException.js.
  * @class A resource file for the EmptyDocumentException.js.
  */
-function EmptyDocumentExceptionRes() {
+EmptyDocumentExceptionRes = function() {
 	this.messages = new Object();
     this.messages[EmptyDocumentException.EMPTY_DOCUMENT] = "The original string is of zero length." ;
     this.messages[EmptyDocumentException.ALL_WHITESPACE_DOCUMENT] = "The original string was all whitespace." ;

Modified: incubator/xap/trunk/src/xap/xml/sax/ParserException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/sax/ParserException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/sax/ParserException.js (original)
+++ incubator/xap/trunk/src/xap/xml/sax/ParserException.js Tue Jun 27 16:06:08 2006
@@ -34,7 +34,7 @@
  * @constructor
  * 
  */
-function ParserException( msgId, args, cause ) {
+ParserException = function( msgId, args, cause ) {
 	XapException.call( this, msgId, args, cause );
 }
 ParserException.prototype = new XapException;   

Modified: incubator/xap/trunk/src/xap/xml/sax/ParserExceptionRes.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/sax/ParserExceptionRes.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/sax/ParserExceptionRes.js (original)
+++ incubator/xap/trunk/src/xap/xml/sax/ParserExceptionRes.js Tue Jun 27 16:06:08 2006
@@ -19,7 +19,7 @@
  * @fileoverview A resource file for the ParserException.js.
  * @class A resource file for the ParserException.js.
  */
-function ParserExceptionRes() {
+ParserExceptionRes = function() {
 	this.messages = new Object();
     this.messages[ParserException.ATTRIBUTE_NAME_EXPECTED] = "An attribute name was expected but not encountered (line={0}, column={1})." ;
     this.messages[ParserException.ATTRIBUTE_DELIMITER_MISSING] = "The attribute value delimiter ( or \") is missing (line={0}, column={1})." ;

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?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js (original)
+++ incubator/xap/trunk/src/xap/xml/sax/SaxContentHandler.js Tue Jun 27 16:06:08 2006
@@ -15,6 +15,7 @@
  *
  */
  
+Xap.require("xap.util.Character");
 //TODO add an option to not auto-generate IDs
 
  /**
@@ -27,7 +28,7 @@
  * @author ikaplansky
  * @author jmargaris
  */
-function SaxContentHandler() {
+SaxContentHandler = function() {
 	this._root = null;
 	this._currentParent = null;
 	this._document = null;

Modified: incubator/xap/trunk/src/xap/xml/sax/SaxParser.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/sax/SaxParser.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/sax/SaxParser.js (original)
+++ incubator/xap/trunk/src/xap/xml/sax/SaxParser.js Tue Jun 27 16:06:08 2006
@@ -15,6 +15,9 @@
  *
  */
  
+ 
+Xap.require("xap.util.*");
+ 
  /** 
  * Creates a new SaxParser instance.
  * @param contentHandler An instance of a SaxContentHandler
@@ -35,7 +38,7 @@
  *
  * 
  */
-function SaxParser( contentHandler ) {
+SaxParser = function( contentHandler ) {
     this.doc = false;
     this.handler = contentHandler;
 // Should probably break the following

Modified: incubator/xap/trunk/src/xap/xml/xmodify/CommandDirective.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/xmodify/CommandDirective.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/xmodify/CommandDirective.js (original)
+++ incubator/xap/trunk/src/xap/xml/xmodify/CommandDirective.js Tue Jun 27 16:06:08 2006
@@ -51,7 +51,7 @@
 // Constructors.
 //----------------------------------------------------------------------
 
-function CommandDirective(elemDirectiveElement)
+CommandDirective = function(elemDirectiveElement)
 {
 
 

Modified: incubator/xap/trunk/src/xap/xml/xmodify/DirectiveSet.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/xmodify/DirectiveSet.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/xmodify/DirectiveSet.js (original)
+++ incubator/xap/trunk/src/xap/xml/xmodify/DirectiveSet.js Tue Jun 27 16:06:08 2006
@@ -16,7 +16,7 @@
  */
  
  
-function DirectiveSet(elemDirectives)
+DirectiveSet = function(elemDirectives)
 {
 // The only hinky thing about this is the lack of a good Array-to-Vector
 // method, which in turn we need because we're unable to overload 

Modified: incubator/xap/trunk/src/xap/xml/xmodify/UpdateDirective.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/xmodify/UpdateDirective.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/xmodify/UpdateDirective.js (original)
+++ incubator/xap/trunk/src/xap/xml/xmodify/UpdateDirective.js Tue Jun 27 16:06:08 2006
@@ -22,6 +22,24 @@
  * @author Johnny@hisown.com
  */
 
+
+/**
+ * Constructor 
+ * 
+ * @param elemDirectiveElement - element representing the directive
+ */
+UpdateDirective = function(elemDirectiveElement)
+{
+
+  /* Change a command directive into a directive object */
+
+   /* Javascript doesnt have trim, so we make our own */
+
+  this._strType = elemDirectiveElement.getLocalName( ) ;
+  this._type = UpdateDirective.getDirectiveTypeAsInt(this._strType);
+  this._directiveElement = elemDirectiveElement;
+}
+
 //----------------------------------------------------------------------
 // Constants
 //----------------------------------------------------------------------
@@ -91,24 +109,7 @@
 // Constructors.
 //----------------------------------------------------------------------
 
-/**
- * Constructor 
- * 
- * @param elemDirectiveElement - element representing the directive
- */
-function UpdateDirective(elemDirectiveElement)
-{
-
-  /* Change a command directive into a directive object */
 
-   /* Javascript doesnt have trim, so we make our own */
-
-  this._strType = elemDirectiveElement.getLocalName( ) ;
-  this._type = UpdateDirective.getDirectiveTypeAsInt(this._strType);
-  this._directiveElement = elemDirectiveElement;
-
-
-}
 
 //----------------------------------------------------------------------
 // Public instance methods

Modified: incubator/xap/trunk/src/xap/xml/xmodify/Xmodify.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/xmodify/Xmodify.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/xmodify/Xmodify.js (original)
+++ incubator/xap/trunk/src/xap/xml/xmodify/Xmodify.js Tue Jun 27 16:06:08 2006
@@ -75,9 +75,12 @@
  * @version Modeled after Java $Revision: 1.20 $
  */
 
-//-----------------------------------------------------------------------
-// Constants. (public static final)
-//-----------------------------------------------------------------------
+Xmodify = function(dom_CommandsDocRoot)
+{
+   this.commandsDocRoot = dom_CommandsDocRoot;
+   this._directiveSet = new DirectiveSet(this.commandsDocRoot);
+   var checkThisOutOnDebugging = true ; 
+}
 
 //-----------------------------------------------------------------------
 // Class Methods
@@ -90,12 +93,7 @@
 // Constructors.
 //-----------------------------------------------------------------------
 
-function Xmodify(dom_CommandsDocRoot)
-{
-   this.commandsDocRoot = dom_CommandsDocRoot;
-   this._directiveSet = new DirectiveSet(this.commandsDocRoot);
-   var checkThisOutOnDebugging = true ; 
-};
+
 
 //-----------------------------------------------------------------------
 // Public Methods. (publc instance methods)

Modified: incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js (original)
+++ incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js Tue Jun 27 16:06:08 2006
@@ -29,7 +29,7 @@
   * @author JL@HisOwn.com
   */
 
-function XmodifyException( message ){
+XmodifyException = function( message ){
 	this._message = message;
 }
 

Modified: incubator/xap/trunk/src/xap/xml/xmodify/XmodifyNamespaceHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/xmodify/XmodifyNamespaceHandler.js?rev=417619&r1=417618&r2=417619&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/xml/xmodify/XmodifyNamespaceHandler.js (original)
+++ incubator/xap/trunk/src/xap/xml/xmodify/XmodifyNamespaceHandler.js Tue Jun 27 16:06:08 2006
@@ -23,14 +23,16 @@
  * @author ikaplansky
  */
 
+XmodifyNamespaceHandler = function(){
+	NamespaceHandler.call(this);
+}
+
 XmodifyNamespaceHandler.MODIFICATIONS_TAG = "modifications";
 
 //-----------------------------------------------------------------------
 // Constructors.
 //-----------------------------------------------------------------------
-function XmodifyNamespaceHandler(){
-	NamespaceHandler.call(this);
-}
+
 
 XmodifyNamespaceHandler.prototype = new NamespaceHandler;