File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default {
4646 // important: defer the child watcher creation until
4747 // the created hook (after data observation)
4848 var self = this
49- child . $once ( 'hook:created' , function ( ) {
49+ child . $once ( 'pre- hook:created' , function ( ) {
5050 self . childWatcher = new Watcher (
5151 child ,
5252 childKey ,
Original file line number Diff line number Diff line change 11export default {
22 bind ( ) {
33 var el = this . el
4- this . vm . $once ( 'hook:compiled' , function ( ) {
4+ this . vm . $once ( 'pre- hook:compiled' , function ( ) {
55 el . removeAttribute ( 'v-cloak' )
66 } )
77 }
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ export default function (Vue) {
159159 */
160160
161161 Vue . prototype . _callHook = function ( hook ) {
162+ this . $emit ( 'pre-hook:' + hook )
162163 var handlers = this . $options [ hook ]
163164 if ( handlers ) {
164165 for ( var i = 0 , j = handlers . length ; i < j ; i ++ ) {
You can’t perform that action at this time.
0 commit comments