var name = this.lookTok(-2).data;
if (isGlobal) {
-
+ print ("GLOBAL: ")
}
-
-
- name = !isGlobal && name && !name.match(/^this\./) ? false : name;
- if (!isGlobal && name && name.match(/^this\./) ) {
- // see if scope ends in prototype..
- print("SCOPE:" + JSON.stringify(scope));
- if (
- (scope.split('.').pop() == 'prototype') &&
- (name.split('.').length == 2)
- ){
- name = name.split('.').pop();
- } else {
- name = false;
- }
-
- } else {
- name = false;
- }
+
//print(JSON.stringify(token,null,4));
this.walkObject(scope, name, token.props, jd);
continue;