Skip to content

Commit

Permalink
Delete memoized proxy object when setting to a new value.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveWang committed Aug 10, 2011
1 parent d6c97bd commit 638487f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/proxy.js
Expand Up @@ -37,6 +37,7 @@ exports.wrap = function (entity) {
},
set : function (receiver, name, value) {
var fqn = path + '.' + name;
delete entity.proxies[fqn];
if (proto === Array.prototype) {
var len = 1 * entity.scopeTable.arrays[path] || 0;
if (name === 'length') {
Expand Down

0 comments on commit 638487f

Please sign in to comment.