Bug Tracker

Changes between Initial Version and Version 1 of Ticket #15073, comment 4


Ignore:
Timestamp:
Aug 2, 2014, 5:00:16 AM (6 years ago)
Author:
hamishdickson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15073, comment 4

    initial v1  
    11After some digging about, this actually looks to be an issue with remove(), rather than off(). So it could cause problems elsewhere.
    22
    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]
     3If 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
    44
    55{{{
    66    ...
     7
     8    // remove any trailing dots
     9    types = types.replace(/\.+\s/, " ").replace(/\.+$/, "");
    710
    811    // Once for each type.namespace in types; type may be omitted
     
    1013    t = types.length;
    1114    while ( t-- ) {
    12         types[t] = types[t].replace(/.+$/, "");
    1315        tmp = rtypenamespace.exec( types[t] ) || [];
    14         type = origType = tmp[1];
    15         namespaces = ( tmp[2] || "" ).split( "." ).sort();
    1616
    1717    ...