You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ms...@apache.org on 2007/11/05 21:23:34 UTC

svn commit: r592144 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/dojo2.js

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){