Tweak _.uniqueId to avoid problems with buggy minifiers.

Former-commit-id: e940c336b227ce89661cd6ada5f3e722a0204318
This commit is contained in:
John-David Dalton
2012-12-21 12:38:55 -06:00
parent 282a5e0b01
commit 1b347fc185
5 changed files with 13 additions and 8 deletions

View File

@@ -4188,7 +4188,8 @@
* // => '105'
*/
function uniqueId(prefix) {
return (prefix == null ? '' : prefix + '') + (++idCounter);
var id = ++idCounter;
return (prefix == null ? '' : prefix + '') + id;
}
/*--------------------------------------------------------------------------*/