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 - The field is visible in navigator twice
Summary: The field is visible in navigator twice
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-15 09:33 UTC by Petr Pisl
Modified: 2015-05-15 09:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.