emberjs/website — pull request #542 by ManInTheBox (2013-06-08 18:32:16+00:00)
Title: Update creating-a-new-model.md

Defined property `newTitle` on `TodosController` with default value of empty string. Without this, line `if (!title.trim()) { return; }` will throw _Uncaught TypeError: Cannot call method 'trim' of undefined_ when trying to submit an empty string.