Fix rename not establishing binding.

This commit is contained in:
Ingvar Stepanyan
2015-02-10 17:18:46 +02:00
parent 897566ccb3
commit 904a72fb3a

View File

@@ -155,7 +155,7 @@ Scope.prototype.rename = function (oldName, newName) {
var scope = info.scope;
this.clearOwnBinding(oldName);
scope.bindings[newName] = binding;
scope.bindings[newName] = info;
binding.name = newName;