Sfoglia il codice sorgente

cloak remove on compiled instead of ready

Evan You 11 anni fa
parent
commit
ccfe4f279d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/directives/cloak.js

+ 1 - 1
src/directives/cloak.js

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