This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252413

Summary: The field is visible in navigator twice
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Petr Pisl 2015-05-15 09:33:53 UTC
Have a code:
function Test() {
    this.onLoading = function() {};
    this.runAJAX = function(urlstring) {
        this.responseStatus = new Array(2);
        var self = this;
        this.xmlhttp.open(this.method, urlstring, this.asynchronous);
        this.xmlhttp.onreadystatechange = function() {
            switch (self.xmlhttp.readyState) {
                case 1:
                    self.onLoading();
                    break;
                case 2:
                    self.onLoaded();
                    self.declare = 1;
                    break;
            }};
    };
} 

The field declare is visible twice in navigator. One time as a field of Test constructor and also as a filed of self variable.