# \[solved\] Trouble with binding functions and old code

**URL:** https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293
**Category:** Help Requests
**Created:** [November 12, 2023, 10:11pm UTC](https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293 "2023-11-12T22:11:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ajoslin103](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ajoslin103/32/281_2.png) [@ajoslin103](https://discourse.aurelia.io/u/ajoslin103)
#### Post date: [November 12, 2023, 10:11pm UTC](https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293/1 "2023-11-12T22:11:37Z")

</div>

Back in 2016 (? ish) this code worked

```auto

      <div class="info-pair">
        <span class="info-tag">is print:</span>
        <input 
          checked.bind="isPrint()"
          id="is-print" type="radio" class="info-value" 
          name="blockSpecialType" value="isPrint" 
        ></input>

        <span class="info-tag">is cancel:</span>
        <input 
          checked.bind="isCancel()"
          id="is-cancel" type="radio" class="info-value" 
          name="blockSpecialType" value="isCancel" 
        ></input>
      </div>

```

Now using the top of Aurealia 1 the binding functions are being called & logging - but the Radio’s don’t change?

---

<div class="post-metadata">

### Author: ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)
#### Post date: [November 13, 2023, 1:12am UTC](https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293/2 "2023-11-13T01:12:32Z")

</div>

Its weird that it was working since `isPrint()` wont be tracked and the radio likely wont be updated properly.  
Can you help with a repro for the issue? You can use this link to create a gist based repro [https://gist.dumber.app/](https://gist.dumber.app/)

---

<div class="post-metadata">

### Author: ![ajoslin103](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ajoslin103/32/281_2.png) [@ajoslin103](https://discourse.aurelia.io/u/ajoslin103)
#### Post date: [November 13, 2023, 10:10pm UTC](https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293/3 "2023-11-13T22:10:59Z")

</div>

If it was a glitch/bug that it worked at all then I need to just stop and move on with doing it the right way.

The working set of data is a fairly complex object containing arrays of arrays of objects.

What’s the best practice for binding against such a beast ?

---

<div class="post-metadata">

### Author: ![ajoslin103](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ajoslin103/32/281_2.png) [@ajoslin103](https://discourse.aurelia.io/u/ajoslin103)
#### Post date: [November 16, 2023, 2:14am UTC](https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293/4 "2023-11-16T02:14:12Z")

</div>

Found newer strata of binding that was working and sprayed it over the older stuff and all’s well

(that newer one was only dealing with clicks, and was using jQuery selections to set values on a subscription)

```auto
      <div class="info-pair"><span class="info-tag">style:</span><span class="info-value">
        <label class="info-label"><input ref="plain" type="radio" change.trigger="doPlain()">:Plain</label> &nbsp;
        <label class="info-label"><input ref="bold" type="checkbox" change.trigger="doBold()">:Bold</label> &nbsp;
        <label class="info-label"><input ref="italic" type="checkbox" change.trigger="doItalic()">:Italic</label> &nbsp;
        <label class="info-label"><input ref="underline" type="checkbox" change.trigger="doUnderline()">:Underlined</label> &nbsp;
      </div>

```
