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 215398 - Code completion and prototype inheritance
Summary: Code completion and prototype inheritance
Status: RESOLVED DUPLICATE of bug 214556
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:
 
Reported: 2012-07-11 11:39 UTC by Vladimir Riha
Modified: 2012-07-11 19:06 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-07-11 11:39:22 UTC
Take following code:

var A = function() {
    this.value = 1;
};
A.prototype.constructor = A;


var B = function() {
    A.call(this);
};
B.prototype = new A();
B.prototype.constructor = B;
var b = new B();
alert(b.value);


If you invoke cc after "b.", then "value" should be in the offered list



​Product Version: NetBeans IDE Dev (Build 201207100002)
Java: 1.7.0_06-ea; Java HotSpot(TM) Client VM 23.2-b08
System: Linux version 3.0.0-21-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-07-11 19:06:19 UTC
basically duplicate of issue #214556

*** This bug has been marked as a duplicate of bug 214556 ***