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 222182 - Navigator should display only declared objects
Summary: Navigator should display only declared objects
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 222129
  Show dependency tree
 
Reported: 2012-11-15 09:33 UTC by Petr Pisl
Modified: 2013-07-19 12:30 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 2012-11-15 09:33:44 UTC
Have a code:

define(function(require) {
    var Editor = Backbone.View.extend({});

    Editor.prototype.openEdition = function (edition) {
        this.pager.on('empty', this.welcome, this);
        this.pager.on('selected', this.openPage, this);
        $('.project-drawer-inner').append(this.pager.el);
    };

    Editor.prototype.welcome = function () {
    };
});

Navigator displays pager object and el property of the pager object. These are not declared in the code and probably shouldn't be visible in the navigator. The navigator should displayed only declared objects / variables or objects / variables that are on the left site in an assignments.
Comment 1 Petr Pisl 2012-11-15 09:51:58 UTC
It requires changes in the model, we need to handle the left sights of assignments in better way.
Comment 2 Petr Pisl 2013-07-19 12:30:01 UTC
Fixed in NB 7.4 code.