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

Key: IDEADEV-22686
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Glen Stampoultzis
Votes: 1
Watchers: 1
Operations

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

Indenting Issue with Javascript Comments

Created: 11 Oct 07 04:42   Updated: 06 Dec 07 18:51
Component/s: JavaScript
Fix Version/s: Selena 7.0.2

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

Build: 7,343
Fixed in build: 7,508
Severity: Medium


 Description  « Hide
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);
    },


 All   Comments   Work Log   Change History      Sort Order:
Glen Stampoultzis - 11 Oct 07 04:43
Drat. The wiki markup screwed up the code example.

Peter Wagener - 17 Oct 07 18:57
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) {
         ....
    }
});