File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,14 +142,14 @@ function isWatchable (obj) {
142
142
* the watch conversion and simply emit set event for
143
143
* all of its properties.
144
144
*/
145
- function emitSet ( obj , observer ) {
145
+ function emitSet ( obj , observer , set ) {
146
146
if ( typeOf ( obj ) === 'Array' ) {
147
- observer . emit ( ' set' , 'length' , obj . length )
147
+ set ( 'length' , obj . length )
148
148
} else {
149
149
var key , val , values = observer . values
150
150
for ( key in observer . values ) {
151
151
val = values [ key ]
152
- observer . emit ( ' set' , key , val )
152
+ set ( key , val )
153
153
}
154
154
}
155
155
}
@@ -196,7 +196,7 @@ module.exports = {
196
196
. on ( 'set' , proxies . set )
197
197
. on ( 'mutate' , proxies . mutate )
198
198
if ( alreadyConverted ) {
199
- emitSet ( obj , ob , rawPath )
199
+ emitSet ( obj , ob , proxies . set )
200
200
} else {
201
201
watch ( obj , null , ob )
202
202
}
You can’t perform that action at this time.
0 commit comments