Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Address Github issue #138.

  • Loading branch information...
commit f3830da2f4ff36b54357c5c27f81f5c80d444fd0 1 parent 6c80ac1
@steveWang steveWang authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scopeTable.js
View
4 lib/scopeTable.js
@@ -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) {
@@ -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.
Something went wrong with that request. Please try again.