From 20332db8366b00b901377be7312d9985f28b5026 Mon Sep 17 00:00:00 2001 From: Jeff Pittman Date: Sat, 14 Apr 2012 10:55:15 -0500 Subject: [PATCH] Fixed mismatch between code in the getting_started repo and the guides page. These changes were pushed a month ago, but were missed because the push was to an already merged branch. --- source/getting_started_3.textile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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' } ] }); },