# Testing viewingSelf from plugin outlet

**URL:** <https://meta.discourse.org/t/testing-viewingself-from-plugin-outlet/57576>\
**Category:** Development\
**Created:** [17 Febbraio 2017, 9:57pm UTC](https://meta.discourse.org/t/testing-viewingself-from-plugin-outlet/57576 "2017-02-17T21:57:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![LeoDavidson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leodavidson/32/119574_2.png) [@LeoDavidson](https://meta.discourse.org/u/LeoDavidson)\
**Post date:** [27 Febbraio 2017, 4:43pm UTC](https://meta.discourse.org/t/testing-viewingself-from-plugin-outlet/57576/5 "2017-02-27T16:43:27Z")

</div>

I can confirm that works, including in the file I was having problems with.

My statement that “this.currentUser” didn’t exist within the connector was wrong.

Looking again, I see where I went wrong: I was using Chrome’s debugger to see which properties/methods existed on the “this” object, but I didn’t realise it only shows some of them at the top level, with others nested inside the \__proto_\_ level. I’m still very much a javascript newbie and still getting surprised by differences vs my bread & butter C++.

Many thanks for your help!

---

_[View the full topic](https://meta.discourse.org/t/testing-viewingself-from-plugin-outlet/57576)._
