Changeset 828 for trunk/fl5/src/com/longtailvideo/jwplayer/utils/Strings.as
- Timestamp:
- 02/11/10 14:45:46 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fl5/src/com/longtailvideo/jwplayer/utils/Strings.as
r812 r828 171 171 return s.replace(/^\s+/, '').replace(/\s+$/, ''); 172 172 } 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 } 173 182 174 183 }
Note: See TracChangeset
for help on using the changeset viewer.
