Fix scope cache returning an item that was just inserted

This commit is contained in:
phantom10111 2015-11-07 23:09:00 +01:00
parent e0f1bd76cb
commit 22dc8f8323

View File

@ -33,7 +33,8 @@ function getCache(node, parentScope, self) {
}
} else if (!node[CACHE_MULTIPLE_KEY]) {
// no scope has ever been associated with this node
return node[CACHE_SINGLE_KEY] = self;
node[CACHE_SINGLE_KEY] = self;
return;
}
// looks like we have either a single scope association that was never matched or