Haha next time make another comment too because I get emails and those
don't go away :)

Thx for looking at it

--
Sent from John's phone.
On Feb 18, 2013 9:47 AM, "Luke Nezda" <notifications@github.com> wrote:

> In src/timecalc.js:
>
> > -    this.computed = ko.computed({
> > -      read: function() {
> > -        // why does this get called immediately?
> > -        return self._raw();
> > -      },
> > -      // when user types in text, we parse it and update our model
> > -      write: function(value) {
> > -        // in order to parse the user's input then update the value in that
> > -        // same field (e.g. 3 -> 3pm) we store updated value in another field
> > -        // called '_raw'.
> > -        // (e.g., computed.write() -> _raw.write() -> computed.read() )
> > -        // There's a problem though if they type in the same
> > -        // time (e.g. it's 3:00pm and they type '3' so it just stays as 3 because
> > -        // this callback isn't triggered). To get around this we set _raw
> > -        // temporarily to exactly what they typed in.
> > -        self._raw(value);
>
> I deleted my comment because I made it based on modifying the wrong code
> :). I fell asleep last night before finishing my exploration with the right
> code :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jplehmann/timecalc/pull/4/files#r3049585>.
>
>