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 201885 - prototype.js class constructor don't support
Summary: prototype.js class constructor don't support
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 13:14 UTC by mctep
Modified: 2014-07-07 13:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Source code (243.91 KB, image/png)
2013-06-21 08:44 UTC, Mr_Secunda
Details
Navigator window (93.87 KB, image/png)
2013-06-21 08:46 UTC, Mr_Secunda
Details
Navigator window in nb 7.2 (94.06 KB, image/png)
2013-06-21 08:53 UTC, Mr_Secunda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mctep 2011-09-09 13:14:44 UTC
var Person = Class.create({
    /**
     * @constructor
     * @param {String} name
     */
    initialize: function(name){
       this.name = name; 
    },
    
    /**
     * @param {String} message
     */
    say: function(message) {
        console.log(message + ' ' + this.name);
    }
});

var person = new Person(/* no parametrs shows in code assist */)

____________________________________________________________

Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Linux version 2.6.38-11-generic running on i386
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17
Comment 1 Petr Pisl 2011-10-04 12:28:07 UTC
Is not now implemented. Needs to be done.
Comment 2 Petr Pisl 2012-12-18 14:49:44 UTC
Still is not supported.
Comment 3 Mr_Secunda 2013-06-21 08:44:33 UTC
Created attachment 136115 [details]
Source code
Comment 4 Mr_Secunda 2013-06-21 08:46:14 UTC
Created attachment 136117 [details]
Navigator window
Comment 5 Mr_Secunda 2013-06-21 08:48:40 UTC
Hi everyone!
I have the same problem. My environment:

Product Version: NetBeans IDE 7.3 (Build 201306052037)
Updates: NetBeans IDE is updated to version NetBeans 7.3 Patch 2
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.5.0-34-generic running on i386; UTF-8; en_US (nb)

I have added screenshots: 
- Source code
- Navigator window
Comment 6 Mr_Secunda 2013-06-21 08:53:41 UTC
Created attachment 136119 [details]
Navigator window in nb 7.2
Comment 7 Mr_Secunda 2013-06-21 08:56:20 UTC
and by the way, netbeans 7.2 navigator displaying the correct values ​​of methods (see "Navigator window in nb 7.2")
Comment 8 Petr Pisl 2013-07-18 08:40:08 UTC
We need to add support for prototypejs
Comment 9 marek.fiance.wojcik 2014-03-26 12:05:05 UTC
Netbeans 8.0 is released. What next with this issue?
Comment 10 Petr Pisl 2014-03-26 12:30:29 UTC
I will try to add this soon.
Comment 11 marek.fiance.wojcik 2014-06-17 08:55:16 UTC
Hello again.
Do you see any chance to prepare this functionality in near future?
Comment 12 Petr Pisl 2014-06-17 21:01:27 UTC
Hi, I have implemented this today. I have introduce new module PrototypeJs support, but the module contains just the implementation of this issue. Please enter new issues, if you need more. Thanks.
Comment 13 octlabs 2014-07-04 13:31:34 UTC
thank you so much, Petr!

tryed dev 201407040001 all my Class.create({}) code .. worked again :)

task next days: 
- transfer all my projects from 7.2 to current dev ;)
- donate you - how?
Comment 14 Petr Pisl 2014-07-07 13:40:42 UTC
Thanks, I'm glad to read it. Don't hesitate and enter new issues if something will not work as you expected.