Remove _.map and _.pluck dependency from _.sortBy and simplify method wrappers.

Former-commit-id: 915af96abd41e8da7bba88cd57eb703f8129107f
This commit is contained in:
John-David Dalton
2012-06-09 00:29:51 -04:00
parent 2332245be1
commit 181b869109
2 changed files with 24 additions and 17 deletions

View File

@@ -226,9 +226,9 @@
result = snippet;
if (snippet) {
// minify property strings
// minify properties
properties.forEach(function(property, index) {
result = result.replace(RegExp("'" + property + "'", 'g'), "'" + minNames[index] + "'");
result = result.replace(RegExp('\\b' + property + '\\b', 'g'), minNames[index]);
});
// replace with modified snippet
source = source.replace(snippet, result);