This is a less than ideal implementation.  We should not be setting temporary properties like this on a scope.  Why not set a stopLookup variable to true and change `attr = attr.substr(2)`?