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

File diff suppressed because one or more lines are too long

View File

@@ -1075,7 +1075,7 @@
// Useful for temporary DOM ids.
var idCounter = 0;
_.uniqueId = function(prefix) {
var id = '' + (++idCounter);
var id = ++idCounter + '';
return prefix ? prefix + id : id;
};