You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-commits@incubator.apache.org by ma...@apache.org on 2006/11/01 00:53:09 UTC

svn commit: r469723 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js

Author: matzew
Date: Tue Oct 31 16:53:09 2006
New Revision: 469723

URL: http://svn.apache.org/viewvc?view=rev&rev=469723
Log:
TrRegExp.prototype.validate

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js?view=diff&rev=469723&r1=469722&r2=469723
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js Tue Oct 31 16:53:09 2006
@@ -322,9 +322,23 @@
   throw new TrConverterException(facesMessage);
 }
 
+function TrRegExpValidator(
+  pattern,
+  messages
+  )
+{  
+  this._pattern  = pattern;
+  this._messages = messages;
+  this._class = "TrRegExpValidator";
+}
 
+// no match pattern
+TrRegExpValidator.NM = 'NM';
+// no match pattern summary
+TrRegExpValidator.NMS = 'NMS';
 
-function _regExpParse(
+TrRegExpValidator.prototype = new TrValidator();
+TrRegExpValidator.prototype.validate  = function(
   parseString,
   label
   )
@@ -348,23 +362,4 @@
                                             this._pattern);                                          
     throw new TrValidatorException(facesMessage); 
   }
-}
-
-
-function TrRegExpValidator(
-  pattern,
-  messages
-  )
-{  
-  this._pattern  = pattern;
-  this._messages = messages;
-  this._class = "TrRegExpValidator";
-}
-
-// no match pattern
-TrRegExpValidator.NM = 'NM';
-// no match pattern summary
-TrRegExpValidator.NMS = 'NMS';
-
-TrRegExpValidator.prototype = new TrValidator();
-TrRegExpValidator.prototype.validate  = _regExpParse;
+}
\ No newline at end of file