Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add L.Draggable options and fix docstring #4483

Closed
wants to merge 1 commit into from

Conversation

nathancahill
Copy link
Member

L.Draggable options are ignored right now. Also, a required argument can't follow an optional one.

@@ -39,9 +39,11 @@ L.Draggable = L.Evented.extend({
}
},

// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline: Boolean)
// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nathancahill Please add a @aka directive so that Draggable options will actually become a link to the class' options section, see https://github.com/Leaflet/Leaflet/blob/master/src/layer/Popup.js#L41

@IvanSanchez
Copy link
Member

Superseded by #5301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants