File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,8 @@ function getInstanceDetails (id) {
276
276
processComputed ( instance ) ,
277
277
processRouteContext ( instance ) ,
278
278
processVuexGetters ( instance ) ,
279
- processFirebaseBindings ( instance )
279
+ processFirebaseBindings ( instance ) ,
280
+ processObservables ( instance )
280
281
)
281
282
}
282
283
}
@@ -471,6 +472,28 @@ function processFirebaseBindings (instance) {
471
472
}
472
473
}
473
474
475
+ /**
476
+ * Process vue-rx observable bindings.
477
+ *
478
+ * @param {Vue } instance
479
+ * @return {Array }
480
+ */
481
+
482
+ function processObservables ( instance ) {
483
+ var obs = instance . $observables
484
+ if ( obs ) {
485
+ return Object . keys ( obs ) . map ( key => {
486
+ return {
487
+ type : 'observable' ,
488
+ key,
489
+ value : instance [ key ]
490
+ }
491
+ } )
492
+ } else {
493
+ return [ ]
494
+ }
495
+ }
496
+
474
497
/**
475
498
* Sroll a node into view.
476
499
*
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ export default {
169
169
border-radius 3px
170
170
margin 2px 0
171
171
position relative
172
+ background-color #e e e
172
173
& .prop
173
174
background-color #b3 cb f7
174
175
& :hover
@@ -181,6 +182,8 @@ export default {
181
182
background-color #5d d5 d5
182
183
& .firebase-binding
183
184
background-color #ff cc 00
185
+ & .observable
186
+ background-color #ff 99 99
184
187
.meta
185
188
display none
186
189
position absolute
You can’t perform that action at this time.
0 commit comments