Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Conversation

@izhan
Copy link

@izhan izhan commented Mar 13, 2014

Editing todos throws an error whenever the change is confirmed by using a newline (Enter). In particular, it throws the error

Uncaught Error: Attempted to handle event 'willCommit' on <Todos.Todo:ember270:2> while in state root.loaded.updated.inFlight.

For the final Todo (Replacing the Fixture Adapter with Another Adapter), it throws the error

Uncaught Error: Attempted to handle event 'willCommit' on <Todos.Todo:ember272:oumdk> while in state root.deleted.saved.

when you attempt to delete a todo by editing the item to be blank. This error throws future errors in some cases such as Assertion failed: calling set on destroyed object, making the todo list unable to function. Note that this bug does not occur when one confirms an edit by clicking somewhere out of the textfield.

This bug occurs because when newline triggers an edit or removal of a todo, acceptChanges is called a second time due to the textfield being focused out. This may or may not be intended behavior -- PR fixes this and all JSBins by checking whether it is still in edit mode.

@trek
Copy link
Member

trek commented Mar 13, 2014

LGTM. The onc last step is updating the code example repo and interactive rebasing, and adding links to new SHAs for the diff links: https://github.com/trek/website/commit/610fc33692dd3f9767a3f341ac295cf633d919e0

@izhan
Copy link
Author

izhan commented Mar 13, 2014

@trek just sent a PR to the code-sample and added a few unrelated typo fixes to the website. Can you please clarify what you mean by "adding links to new SHAs for the diff links"?

@trek
Copy link
Member

trek commented Mar 16, 2014

Since you rebased interactively, the SHAs of those later commit is now different. Each step links to a diff on github by SHA. Those links will be broken.

@izhan
Copy link
Author

izhan commented Mar 17, 2014

Got it. Added and squashed that change into the first commit. Anything else?

@izhan izhan closed this Mar 17, 2014
@izhan izhan reopened this Mar 17, 2014
@trek
Copy link
Member

trek commented Mar 17, 2014

Looks good to me. I'll need to find a time to manually the repo changes and then publish.

@izhan
Copy link
Author

izhan commented Mar 17, 2014

sounds good -- lemme know if you need any help.

@izhan
Copy link
Author

izhan commented Apr 28, 2014

@trek Any updates on this?

@tbassetto
Copy link

I am in the process of learning Ember.js and I was confused by the fact that the Getting Started guide makes your create an app throwing errors in the console. Is it possible for someone to finally merge this PR? As a newcomer it's really not clear why this error is happening (it took me a while to find this PR and a related issue).

@trek
Copy link
Member

trek commented Feb 15, 2015

The new starting guide will not be based on TodoMVC.

@trek trek closed this Feb 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants