# Differences on parameter of clicked function

**URL:** <https://forums.fusetools.com/t/differences-on-parameter-of-clicked-function/1758>\
**Category:** Bug Reports\
**Created:** [July 4, 2016, 8:51pm UTC](https://forums.fusetools.com/t/differences-on-parameter-of-clicked-function/1758 "2016-07-04T20:51:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gonzalo\_Vega](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/gonzalo_vega/32/180_2.png) [@Gonzalo\_Vega](https://forums.fusetools.com/u/Gonzalo_Vega)\
**Post date:** [July 4, 2016, 8:51pm UTC](https://forums.fusetools.com/t/differences-on-parameter-of-clicked-function/1758/1 "2016-07-04T20:51:32Z")

</div>

Hi guys, since 0.20 we changed the `<Clicked>` tags for the inline Clicked property of a component. In the handler function we are receiving the parameter and we do something with the `sender` attribute, but this parameter it’s different if we use the inline property. Here’s a simple example of what i’m trying to say:

```auto
<App>
    <JavaScript>
        module.exports = {
            foo: function (obj){
                console.log(JSON.stringify(obj));
            }
        }
    </JavaScript>

    <StackPanel>
        <Button ux:Name="btn1" Text="Click!" Clicked="{foo}"/>

        <Button ux:Name="btn2" Text="Click!">
            <Clicked>
                <Callback Handler="{foo}"/>
            </Clicked>
        </Button>
    </StackPanel>
</App>

```

output btn1: `{"node":{"external_object":{}},"data":{},"x":194,"y":8,"index":0}`

output btn2: `{"node":{"external_object":{}},"data":{},"sender":"btn2"}`

why are they different?

we are using fuse 0.21.0 build 6650

---

<div class="post-metadata">

**Author:** ![edA-qa\_mort-ora-y](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/eda-qa_mort-ora-y/32/124_2.png) [@edA-qa\_mort-ora-y](https://forums.fusetools.com/u/edA-qa_mort-ora-y)\
**Post date:** [July 8, 2016, 12:48pm UTC](https://forums.fusetools.com/t/differences-on-parameter-of-clicked-function/1758/2 "2016-07-08T12:48:09Z")

</div>

`Callback` is the source of the event in the second case, not the `Clicked` trigger. You can however put the handler directly on the trigger: `<Clicked Handler="{foo}"/>`
