I decided to write a few directives, looked off. documentation and source code directives on the vue is awesome.
Like understood, everything is clear except the moment the settings of the hooks.
Off documentation says:
All arguments, except for el, should be understood as read-only and never change them. If necessary to transmit information between the hooks is recommended to use the dataset.
Okay, all clear. Now look at the source code directives v-dragged
, and I see that in line 16
there is an entry in the binding parameter.
Tell me did I understand correctly that the author has departed from a recommendation off. documentation and wrote the code is not quite correct (although working)?
Or I something do not understand?