tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mschu...@apache.org
Subject svn commit: r592144 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/dojo2.js
Date Mon, 05 Nov 2007 20:23:34 GMT
Author: mschulte
Date: Mon Nov  5 12:23:34 2007
New Revision: 592144

URL: http://svn.apache.org/viewvc?rev=592144&view=rev
Log:
Fixes TAPESTRY-1663 without re-introducing TAPESTRY-1753

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/dojo2.js

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/dojo2.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/dojo2.js?rev=592144&r1=592143&r2=592144&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/dojo2.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/dojo2.js Mon Nov  5 12:23:34
2007
@@ -673,13 +673,15 @@
 for(var i=0;i<_84.required.length;i++){
 if(!dojo.lang.isString(_84.required[i])){continue;}
 var _8d=_83[_84.required[i]];
-if(!dj_undef("type",_8d)&&(_8d.type=="text"||_8d.type=="textarea"||_8d.type=="password"||_8d.type=="file")&&/^\s*$/.test(_8d.value)){
+if(!dj_undef("type",_8d)&&(_8d.type=="text"||_8d.type=="textarea"||_8d.type=="password"||_8d.type=="file")){
+if (/^\s*$/.test(_8d.value))
 _85[_85.length]=_8d.name;
 }else{
-if(!dj_undef("type",_8d)&&(_8d.type=="select-one"||_8d.type=="select-multiple")&&(_8d.selectedIndex==-1||/^\s*$/.test(_8d.options[_8d.selectedIndex].value))){
+if(!dj_undef("type",_8d)&&(_8d.type=="select-one"||_8d.type=="select-multiple")){
+if (_8d.selectedIndex==-1||/^\s*$/.test(_8d.options[_8d.selectedIndex].value))
 _85[_85.length]=_8d.name;
 }else{
-if(_8d instanceof Array){
+if( dojo.lang.isArrayLike(_8d)){
 var _8f=false;
 for(var j=0;j<_8d.length;j++){
 if(_8d[j].checked){



Mime
View raw message