Changeset 1548

Show
Ignore:
Timestamp:
11/15/07 11:11:54 (6 years ago)
Author:
drry
Message:

websites/coderepos.org/trac/share/js/TracAuthorIcon.js: TracUtils?.js に合わせるの。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/coderepos.org/trac/share/js/TracAuthorIcon.js

    r1545 r1548  
    11// $Id$ 
    2 // vim:ft=javascript:expandtab 
     2// vim:et:sts=4:ts=4:sw=4: 
    33var TracAuthorIcon = { 
    44    authorIcons : { 
     
    166166            return o ? o : (document.contentType == "application/xhtml+xml") ? "http://www.w3.org/1999/xhtml" : ""; 
    167167        }); 
    168         type = type || Object; 
    169168 
    170169        switch (type) { 
     
    198197                } 
    199198                return ret; 
    200             case Object: 
    201             default: 
     199            case undefined: 
    202200                var result = exp.evaluate( 
    203201                    context, 
     
    218216                        return ret; 
    219217                    } 
    220                     default: 
    221                         return null; 
    222                 } 
     218                } 
     219                return null; 
     220            default: 
     221                throw(TypeError("$X: specified type is not valid type.")); 
    223222        } 
    224223    }