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
It would be valuable to extend the start method of our plugin to allow Elements as an argument instead of just passing a string selector. This is mainly because we might want to separate the implementation of the plugin from us accessing DOM elements, which would let us have more control over the logical flow of our code. For example, we can select the element from the dom when the page loads and simply pass it to our start method when we need to as opposed to selecting the elements at the time of our method call. This is not necessarily a bad thing, but we would have to do some weird things or alter our plugin code if we wanted to handle a dom element at all before calling the start method.
The text was updated successfully, but these errors were encountered:
It would be valuable to extend the start method of our plugin to allow Elements as an argument instead of just passing a string selector. This is mainly because we might want to separate the implementation of the plugin from us accessing DOM elements, which would let us have more control over the logical flow of our code. For example, we can select the element from the dom when the page loads and simply pass it to our start method when we need to as opposed to selecting the elements at the time of our method call. This is not necessarily a bad thing, but we would have to do some weird things or alter our plugin code if we wanted to handle a dom element at all before calling the start method.
The text was updated successfully, but these errors were encountered: