Changeset 12894

Show
Ignore:
Timestamp:
03/04/08 21:41:18 (10 months ago)
Author:
dante
Message:

fixes #5868 - clean cla/patch from Alessandro Ferrari removing redunant paramNames checking

Location:
dojox/trunk/image
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/image/SlideShow.js

    r12464 r12894  
    174174                }; 
    175175                if(request.query){ dojo.mixin(this._request.query, request.query); } 
    176                 if(paramNames && paramNames.imageLargeAttr){ 
    177                         this.imageLargeAttr = paramNames.imageLargeAttr; 
     176                if(paramNames){ 
     177                        dojo.forEach(["imageLargeAttr", "linkAttr", "titleAttr"], function(attrName){ 
     178                                if(paramNames[attrName]){ this[attrName] = paramNames[attrName]; }       
     179                        }, this); 
    178180                } 
    179181         
  • dojox/trunk/image/ThumbnailPicker.js

    r12386 r12894  
    229229                if(request.query){ dojo.mixin(this.request.query, request.query);} 
    230230         
    231                 if(paramNames && paramNames.imageThumbAttr){ 
     231                if(paramNames){ 
    232232                        dojo.forEach(["imageThumbAttr", "imageLargeAttr", "linkAttr", "titleAttr"], function(attrName){ 
    233233                                if(paramNames[attrName]){ this[attrName] = paramNames[attrName]; }