Remove Closure Compiler escape from eachIteratorOptions.

Former-commit-id: 532e73f570bed2bc5941d0a6d1cb13618da0441b
This commit is contained in:
John-David Dalton
2013-03-10 00:55:50 -08:00
parent ff0b23f200
commit 0fa0b0b1ea
3 changed files with 5 additions and 2 deletions

View File

@@ -245,6 +245,9 @@
return "['" + prop.replace(/['\n\r\t]/g, '\\$&') + "']";
});
// remove brackets from `lodash.createCallback` in `eachIteratorOptions`
source = source.replace('lodash[\'createCallback\'](callback, thisArg)"', 'lodash.createCallback(callback, thisArg)"');
// remove brackets from `lodash.createCallback` in `_.assign`
source = source.replace("' var callback = lodash['createCallback']", "'var callback=lodash.createCallback");