소스 검색

rename some binding hooks according to new names

Henry Jameson 2 년 전
부모
커밋
7b10e47b21
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)
   }
 }