History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-11801
Type: Usability Problem Usability Problem
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Bernard Sumption
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Variable autocompletion does not always work in JavaScript

Created: 20 Jul 06 14:38   Updated: 10 Nov 06 17:53
Component/s: JavaScript
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 5,383


 Description  « Hide
This is related to IDEA-8325 as it referrs to the same pattern of usage.

Take:

function Class1(){
this.variable = 3;
}
Class1.prototype.method1 = function() {
this.variable; // autocomplete works here
}
Class1.prototype.method2 = Class1_method2;
function Class1_method2() {
this.variable; // autocomplete does not work here
}

Variable autocomplete only works when you define a function anonymously as for method1, not by assignment as per method2.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.