Parcourir la source

rename some binding hooks according to new names

Henry Jameson il y a 2 ans
Parent
commit
7b10e47b21
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/directives/body_scroll_lock.js

+ 2 - 2
src/directives/body_scroll_lock.js

@@ -55,7 +55,7 @@ const directive = {
       disableBodyScroll(el)
     }
   },
-  componentUpdated: (el, binding) => {
+  updated: (el, binding) => {
     if (binding.oldValue === binding.value) {
       return
     }
@@ -66,7 +66,7 @@ const directive = {
       enableBodyScroll(el)
     }
   },
-  unbind: (el) => {
+  unmounted: (el) => {
     enableBodyScroll(el)
   }
 }