Flip the negation in if-else.

This commit is contained in:
Ingvar Stepanyan 2015-05-14 18:05:55 +03:00
parent e05d7cf49a
commit da765cc4c1

View File

@ -16,13 +16,13 @@ function getTempId(scope) {
function inferBindContext(bind, scope) {
var tempId = getTempId(scope);
if (!bind.object) {
bind.callee.object = t.assignmentExpression("=", tempId, bind.callee.object);
} else {
if (bind.object) {
bind.callee = t.sequenceExpression([
t.assignmentExpression("=", tempId, bind.object),
bind.callee
]);
} else {
bind.callee.object = t.assignmentExpression("=", tempId, bind.callee.object);
}
return tempId;
}