Changes between Initial Version and Version 1 of Ticket #15073, comment 4
- Timestamp:
- Aug 2, 2014, 5:00:16 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15073, comment 4
initial v1 1 1 After some digging about, this actually looks to be an issue with remove(), rather than off(). So it could cause problems elsewhere. 2 2 3 If we go with the idea that it should just ignore a trailing dot as if there were no namespaces at all, then it's just a case of stripping out any trailing dots in types [t]3 If we go with the idea that it should just ignore a trailing dot as if there were no namespaces at all, then it's just a case of stripping out any trailing dots in types before it gets to the while loop 4 4 5 5 {{{ 6 6 ... 7 8 // remove any trailing dots 9 types = types.replace(/\.+\s/, " ").replace(/\.+$/, ""); 7 10 8 11 // Once for each type.namespace in types; type may be omitted … … 10 13 t = types.length; 11 14 while ( t-- ) { 12 types[t] = types[t].replace(/.+$/, "");13 15 tmp = rtypenamespace.exec( types[t] ) || []; 14 type = origType = tmp[1];15 namespaces = ( tmp[2] || "" ).split( "." ).sort();16 16 17 17 ...