You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2011/10/24 18:15:56 UTC

svn commit: r1188196 - in /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5: t5-dom.js tapestry.js

Author: hlship
Date: Mon Oct 24 16:15:55 2011
New Revision: 1188196

URL: http://svn.apache.org/viewvc?rev=1188196&view=rev
Log:
Qualify the use of _.isString() as T5._.isString()
Replace a use of Prototype's Object.isString() with T5._.isString()

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-dom.js
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-dom.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-dom.js?rev=1188196&r1=1188195&r2=1188196&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-dom.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-dom.js Mon Oct 24 16:15:55 2011
@@ -39,7 +39,7 @@ T5.define("dom", function() {
      */
     function locate(element) {
 
-        if (_.isString(element)) {
+        if (T5._.isString(element)) {
             return document.getElementById(element);
         }
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=1188196&r1=1188195&r2=1188196&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Mon Oct 24 16:15:55 2011
@@ -1249,7 +1249,7 @@ Tapestry.Validator = {
 
     required : function(field, message) {
         $(field).getFieldEventManager().requiredCheck = function(value) {
-            if ((Object.isString(value) && value.strip() == '')
+            if ((T5._.isString(value) && value.strip() == '')
                 || value == null)
                 $(field).showValidationMessage(message);
         };
@@ -1733,7 +1733,7 @@ Tapestry.FieldEventManager = Class.creat
          * error is already noted and presented to the user.
          */
 
-        if (!t.validationError && !(Object.isString(value) && value.blank())) {
+        if (!t.validationError && !(T5._.isString(value) && value.blank())) {
             var translated = this.translator(value);
 
             /*