You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I found it unclear how to tell whether my object is initialized or not and only recently found that checking whether the object has mySortableObject?.el works, as opposed only checking if mySortableObject exists.
Describe the solution you'd like
Maybe some named helper function with a name like .isInitialized() or isUsingSortable()?
Describe alternatives you've considered
Otherwise it might be helpful to document that doing mySortableObject?.el is a better check than only mySortableObject (besides it being reported in this issue itself).
I only thought of this because I was getting an error about this.el being null when I had code trying to run mySortableObject.destroy(); twice because the logic was treating isInitialized = mySortableObject as the check, when really it should be isInitialized = mySortableObject.el, but this.el looks like an internal variable.
Is your feature request related to a problem? Please describe.
I found it unclear how to tell whether my object is initialized or not and only recently found that checking whether the object has
mySortableObject?.el
works, as opposed only checking ifmySortableObject
exists.Describe the solution you'd like
Maybe some named helper function with a name like
.isInitialized()
orisUsingSortable()
?Describe alternatives you've considered
Otherwise it might be helpful to document that doing
mySortableObject?.el
is a better check than onlymySortableObject
(besides it being reported in this issue itself).Additional context
The text was updated successfully, but these errors were encountered: