Changes between Initial Version and Version 1 of Ticket #11011, comment 10


Ignore:
Timestamp:
Nov 27, 2013, 10:09:26 AM (10 years ago)
Author:
Piotr Jasiun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11011, comment 10

    initial v1  
    22> 1. Wouldn't `indexOf` be better than `substr`?
    33
    4 No. `indexOf` is slower, because if it does not find 'data-' at the beginning it will look for match. Anyway I replaced `substr`with `substring` because the second one is standardized.
     4No. `indexOf` is slower, because if it does not find 'data-' at the beginning it will look for match. Anyway I replaced `substr`with `slice` because the second one is standardized.
    55
    66> 2. It would be good to have a test that even though data-* attr wasn't removed, the next one after it was, so we'll know that loop wasn't terminated completely.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy