# decorateWidget does not return vDom element

**URL:** <https://meta.discourse.org/t/decoratewidget-does-not-return-vdom-element/46680>\
**Category:** Development\
**Created:** [30.Июнь.2016 20:36:29 UTC](https://meta.discourse.org/t/decoratewidget-does-not-return-vdom-element/46680 "2016-06-30T20:36:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [30.Июнь.2016 20:39:39 UTC](https://meta.discourse.org/t/decoratewidget-does-not-return-vdom-element/46680/2 "2016-06-30T20:39:39Z")

</div>

Scope?

maybe

```plaintext
api.decorateWidget('post-meta-data:after', dec => {
  function doThis() {      
    return h('i.fa.fa-eye')
  };
  return doThis();
});

```

---

_[View the full topic](https://meta.discourse.org/t/decoratewidget-does-not-return-vdom-element/46680)._
