Cleanup _.template.

Former-commit-id: dc3fa2d02a9a4a2d4034136d2ce7f03d0b67224a
This commit is contained in:
John-David Dalton
2012-09-19 00:29:32 -07:00
parent 00cfb95971
commit 25de44a23d
3 changed files with 10 additions and 10 deletions

View File

@@ -298,7 +298,7 @@
source = source.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *try *\{(?:\s*\/\/.*)*\n *var useSourceURL[\s\S]+?catch[^}]+}\n/, '');
// remove debug sourceURL use in `_.template`
source = source.replace(/(?:\s*\/\/.*\n)* *if *\(useSourceURL[^}]+}/, '');
source = source.replace(/(?:\s*\/\/.*\n)* *var sourceURL[^;]+;|\+ *sourceURL/g, '');
// minify internal properties used by 'compareAscending', `_.merge`, and `_.sortBy`
(function() {