File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -321,12 +321,11 @@ CompilerProto.setupObserver = function () {
321
321
var compiler = this ,
322
322
bindings = compiler . bindings ,
323
323
options = compiler . options ,
324
- observer = compiler . observer = new Emitter ( )
324
+ observer = compiler . observer = new Emitter ( compiler . vm )
325
325
326
326
// a hash to hold event proxies for each root level key
327
327
// so they can be referenced and removed later
328
328
observer . proxies = { }
329
- observer . _ctx = compiler . vm
330
329
331
330
// add own listeners which trigger binding updates
332
331
observer
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ EmitterProto.on = function(event, fn){
11
11
return this
12
12
}
13
13
14
- Emitter . prototype . once = function ( event , fn ) {
14
+ EmitterProto . once = function ( event , fn ) {
15
15
var self = this
16
16
this . _cbs = this . _cbs || { }
17
17
@@ -25,7 +25,7 @@ Emitter.prototype.once = function(event, fn){
25
25
return this
26
26
}
27
27
28
- Emitter . prototype . off = function ( event , fn ) {
28
+ EmitterProto . off = function ( event , fn ) {
29
29
this . _cbs = this . _cbs || { }
30
30
31
31
// all
@@ -56,7 +56,7 @@ Emitter.prototype.off = function(event, fn){
56
56
return this
57
57
}
58
58
59
- Emitter . prototype . emit = function ( event , a , b , c ) {
59
+ EmitterProto . emit = function ( event , a , b , c ) {
60
60
this . _cbs = this . _cbs || { }
61
61
var callbacks = this . _cbs [ event ]
62
62
You can’t perform that action at this time.
0 commit comments