Skip to content

Commit

Permalink
Address Github issue Flotype#138.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveWang committed Sep 12, 2011
1 parent 6c80ac1 commit f3830da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scopeTable.js
Expand Up @@ -45,7 +45,7 @@ ScopeTable.prototype.deleteVar = function (fqn) {
var lastIndex = fqn.lastIndexOf('.');
var parent = fqn.substring(0, lastIndex);

if (nowUtil.hasProperty(this.data, fqn)) {
if (nowUtil.hasProperty(this.data, parent)) {
// Remove from its parent.
var index = this.data[parent].indexOf(fqn.substring(lastIndex + 1));
if (index > -1) {
Expand All @@ -61,4 +61,4 @@ ScopeTable.prototype.flagAsArray = function (fqn, len) {
return (this.arrays[fqn] = len);
};

exports.ScopeTable = ScopeTable;
exports.ScopeTable = ScopeTable;

0 comments on commit f3830da

Please sign in to comment.