Ignore:
Timestamp:
02/11/10 14:45:46 (3 years ago)
Author:
pablo
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/src/com/longtailvideo/jwplayer/utils/Strings.as

    r812 r828  
    171171                        return s.replace(/^\s+/, '').replace(/\s+$/, ''); 
    172172                } 
     173                 
     174                /** Get the value of a case-insensitive attribute in an XML node **/ 
     175                public static function xmlAttribute(xml:XML, attribute:String):String { 
     176                        for each (var attrib:XML in xml.attributes()) { 
     177                                if (attrib.name().toString().toLowerCase() == attribute.toLowerCase()) 
     178                                        return attrib.toString(); 
     179                        } 
     180                        return ""; 
     181                } 
    173182 
    174183        } 
Note: See TracChangeset for help on using the changeset viewer.