Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Mossienko
Subsystem
JavaScript
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Glen Stampoultzis
    4 years ago (11 Oct 2007 05:42)
  • Updated by   root
    2 years ago (17 Jan 2010 20:54)
  • Jira: IDEADEV-22686
    (history, comments)
 
IDEA-41459 Indenting Issue with Javascript Comments
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
JDoc comments are being indented to the first column rather than aligned with the code itself.

/**
 *
 * @param id
 * @param lonlat
 * @param size
 * @param anchor
 * @param closeBox
 * @param markers
 * @param markerRenderer
 */
    initialize:function(id, lonlat, size, anchor, closeBox, markers, markerRenderer) {
        this.mapId = OpenLayers.Util.createUniqueID(this.CLASS_NAME.replace(/\./g,"") + "_map");
        EMS.Popup.prototype.initialize.apply(this, [id, lonlat, size, "", anchor, closeBox]);

        this.markers = markers;
        this.markerRenderer = markerRenderer;
        this.history = [];

        this.events = new OpenLayers.Events(this, null, this.EVENT_TYPES, true);
    },



Issue was resolved
Comments (2)
 
History
 
Linked Issues (?)
 
Glen Stampoultzis
  Glen Stampoultzis
11 Oct 2007 05:43
4 years ago
Drat. The wiki markup screwed up the code example.
Peter Wagener
  Peter Wagener
17 Oct 2007 19:57
4 years ago
This issue is an annoyance when defining JavaScript classes via any OO-providing framework. For instance, when using the Dojo Toolkit....

dojo.declare("com.example.Foo", null,
/**
* This constructor's JDoc comment is not aligned correctly
*/
function() {
....
},
{
/**
* And neither is a regular function declaration
*/
doStuff: function(stuff) {
....
}
});