Re: Starting to look at Bindings

2020-01-03 Thread Alex Harui
Ah, ok, it might be to support either HTML or plain text content. IIRC, there are a couple of ITextModels and one takes the time to initialize _text = "" and one doesn't. The component sets that care less about PAYG can use the NonNull TextModel by default. -Alex On 1/3/20, 12:04 AM, "Harbs"

Re: Starting to look at Bindings

2020-01-03 Thread Harbs
What happens if the html property is set? In that case, I think the textNode does not reference anything valid. That’s probably broken wither way though… > On Jan 3, 2020, at 7:55 AM, Alex Harui wrote: > > I noticed that "if (textNode)" the other day and wondered why it was there > but didn't

Re: Starting to look at Bindings

2020-01-02 Thread Alex Harui
I noticed that "if (textNode)" the other day and wondered why it was there but didn't have time to look. If you have time, it might be worth going back through history to see if was added for some reason. -Alex On 1/2/20, 8:38 PM, "Greg Dove" wrote: I plan to gradually work on a compreh

Starting to look at Bindings

2020-01-02 Thread Greg Dove
I plan to gradually work on a comprehensive set of unit-ish tests for Bindings (it's less easy than other things, but I believe I have an approach to do it which will work as unit style tests), from the ground up. I started looking at this today, just with simple bindings and first up comparing be