Ensure Lo-Dash works in the JS engine embedded in Adobe products.

Former-commit-id: 860665d3735aef1dff75149b49b78c1615f38fa0
This commit is contained in:
John-David Dalton
2012-12-01 18:47:38 -08:00
parent c5d579e0e3
commit e1f442be90
4 changed files with 167 additions and 151 deletions

View File

@@ -646,7 +646,8 @@
*/
function removeCreateFunction(source) {
return removeFunction(source, 'createFunction')
.replace(/\n *try *{(?:\s*\/\/.*)*\n.*?createFunction[\s\S]+?catch[^}]+}\n/, '');
.replace(/\n *try *\{\s*var document[\s\S]+?catch[^}]+}\n/, '')
.replace(/\n *try *\{(?:\s*\/\/.*)*\n.*?createFunction[\s\S]+?catch[^}]+}\n/, '');
}
/**