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.
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 () { }; }); In the model (also displayed in navigator) is creted object Editor that has welcome property (comming from the line this.pager.on('empty', this.welcome, this); ). But this.welcome refers the function defined in prototype object.
The resolver shouldn't create new property welcome in Editor object, but add new occurrence for welcome function in the prototype object. But on the other hand the welcome property is parsed first, so the property is created in the model and after this is parsed the function. Possible solution would be to handle this situation in the second phase of parsing, where are the local types resolved.
Fixed in NB 7.4 code - adding test http://hg.netbeans.org/web-main/rev/308a276cb203
Not fixed properly still.
Integrated into 'main-silver', will be available in build *201307192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/308a276cb203 User: Petr Pisl <ppisl@netbeans.org> Log: #222179 - Some properties are resolved in wrong way
Fixed in NB 8.0