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 {
46
46
// important: defer the child watcher creation until
47
47
// the created hook (after data observation)
48
48
var self = this
49
- child . $once ( 'hook:created' , function ( ) {
49
+ child . $once ( 'pre- hook:created' , function ( ) {
50
50
self . childWatcher = new Watcher (
51
51
child ,
52
52
childKey ,
Original file line number Diff line number Diff line change 1
1
export default {
2
2
bind ( ) {
3
3
var el = this . el
4
- this . vm . $once ( 'hook:compiled' , function ( ) {
4
+ this . vm . $once ( 'pre- hook:compiled' , function ( ) {
5
5
el . removeAttribute ( 'v-cloak' )
6
6
} )
7
7
}
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ export default function (Vue) {
159
159
*/
160
160
161
161
Vue . prototype . _callHook = function ( hook ) {
162
+ this . $emit ( 'pre-hook:' + hook )
162
163
var handlers = this . $options [ hook ]
163
164
if ( handlers ) {
164
165
for ( var i = 0 , j = handlers . length ; i < j ; i ++ ) {
You can’t perform that action at this time.
0 commit comments