diff --git a/source/getting_started_3.textile b/source/getting_started_3.textile index 8f57af5..059bb9e 100644 --- a/source/getting_started_3.textile +++ b/source/getting_started_3.textile @@ -203,7 +203,7 @@ to have time to operate as it would in a normal web app situation. h5. main.js (app root directory) -TodosThree.main = function main() { +TodosThree.main = function () { TodosThree.statechart.initStatechart(); }; @@ -402,14 +402,12 @@ h5. SHOWING_DESTROY_CONFIRMATION State TodosThree.SHOWING_DESTROY_CONFIRMATION = SC.State.design({ _panel: null, - todosBinding: 'TodosThree.completedTodosController.content', - enterState: function() { - var todos = this.get('todos'); var displayDescription = "Are you sure that you wish to clear the following tasks?

"; + var completedTodos = TodosThree.completedTodosController; displayDescription += ""; this._panel = SC.AlertPane.warn({ @@ -421,8 +419,8 @@ TodosThree.SHOWING_DESTROY_CONFIRMATION = SC.State.design({ displayDescription: displayDescription, buttons: [ - { title: 'Clear', action: 'confirm', default: NO }, - { title: 'Cancel', action: 'cancel', default: YES } + { title: 'Clear', action: 'confirm' }, + { title: 'Cancel', action: 'cancel' } ] }); },