Explorar o código

cloak remove on compiled instead of ready

Evan You %!s(int64=11) %!d(string=hai) anos
pai
achega
ccfe4f279d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/directives/cloak.js

+ 1 - 1
src/directives/cloak.js

@@ -4,7 +4,7 @@ module.exports = {
 
 
   bind: function () {
   bind: function () {
     var el = this.el
     var el = this.el
-    this.vm.$once('hook:ready', function () {
+    this.vm.$once('hook:compiled', function () {
       el.removeAttribute(config.prefix + 'cloak')
       el.removeAttribute(config.prefix + 'cloak')
     })
     })
   }
   }