Remove isKeysFast guard.

Former-commit-id: 38a63ed31d652fd198ebf30dbb0f1546160c30c1
This commit is contained in:
John-David Dalton
2013-01-05 10:14:15 -08:00
parent e2c2a37221
commit 766d67d80d
7 changed files with 61 additions and 67 deletions

View File

@@ -41,7 +41,7 @@
// flip `typeof` expressions to help optimize Safari and
// correct the AMD module definition for AMD build optimizers
// (e.g. from `"number" == typeof x` to `typeof x == "number")
source = source.replace(/(\w)?("[^"]+")\s*([!=]=)\s*(typeof(?:\s*\([^)]+\)|\s+[.\w[\]]+))/g, function(match, other, type, equality, expression) {
source = source.replace(/(\w)?("[^"]+")\s*([!=]=)\s*(typeof(?:\s*\([^)]+\)|\s+[.\w]+(?!\[)))/g, function(match, other, type, equality, expression) {
return (other ? other + ' ' : '') + expression + equality + type;
});