mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Tweak _.uniqueId to avoid problems with buggy minifiers.
Former-commit-id: e940c336b227ce89661cd6ada5f3e722a0204318
This commit is contained in:
@@ -4188,7 +4188,8 @@
|
||||
* // => '105'
|
||||
*/
|
||||
function uniqueId(prefix) {
|
||||
return (prefix == null ? '' : prefix + '') + (++idCounter);
|
||||
var id = ++idCounter;
|
||||
return (prefix == null ? '' : prefix + '') + id;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user