Skip to content

Commit

Permalink
Quoted blocks look better in italics.
Browse files Browse the repository at this point in the history
  • Loading branch information
geojeff authored and publickeating committed Mar 8, 2012
1 parent 1efdfed commit 9a47f14
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/getting_started_3.textile
Expand Up @@ -302,7 +302,7 @@ data loading would probably come at some point after logging in, in a state dedi
We see our first observer function in didLoad(). This function is fired when the trigger given in the chained We see our first observer function in didLoad(). This function is fired when the trigger given in the chained
call happens: .stateObserves('TodosThree.todosController*content.status'). In human language, this means: call happens: .stateObserves('TodosThree.todosController*content.status'). In human language, this means:


"When the status of the content changes, fire this function." _If the status of the content changes, fire this function._


When the didLoad function is fired, there is an explicit check to see that the status change was to become When the didLoad function is fired, there is an explicit check to see that the status change was to become
SC.READY_CLEAN, and if so, to move control to the SHOWING_APP state. SC.READY_CLEAN, and if so, to move control to the SHOWING_APP state.
Expand Down Expand Up @@ -564,8 +564,8 @@ see two local properties as totalTodosBinding and completedTodosBinding. The com
declared with a normal no-argument function signature, with .property('totalTodo', 'completedTodos').cacheable() declared with a normal no-argument function signature, with .property('totalTodo', 'completedTodos').cacheable()
chained onto the end. The chained part means: chained onto the end. The chained part means:


"Base this computed property on the totalTodos and completedTodos properties, and update it if either of them changes, _Base this computed property on the totalTodos and completedTodos properties, and update it if either of them changes,
and, also, cache the value so unnecessary updates are avoided." and, also, cache the value so unnecessary updates are avoided._


Note that the special way of setting a binding, as with totalTodosBinding, results in the creation of a property Note that the special way of setting a binding, as with totalTodosBinding, results in the creation of a property
that is referred to as just totalTodos. You see this in the two this.get() calls where the completedTodos are that is referred to as just totalTodos. You see this in the two this.get() calls where the completedTodos are
Expand Down Expand Up @@ -864,8 +864,8 @@ totalTodosBinding, we essentially say to get the value of totalTodos from this o
That covers the background on mechanics of property names and bindings. As before, here is a human language That covers the background on mechanics of property names and bindings. As before, here is a human language
explanation of the chained calls on the end (.property('length', 'totalTodos').cacheable()): explanation of the chained calls on the end (.property('length', 'totalTodos').cacheable()):


"Base this computed property on the length and totalTodos properties, and update it if either of them changes, _Base this computed property on the length and totalTodos properties, and update it if either of them changes,
and, also, cache the value so unnecessary updates are avoided." and, also, cache the value so unnecessary updates are avoided._


There is more to learn about the working of this computed property. What are the k and v parameters, and There is more to learn about the working of this computed property. What are the k and v parameters, and
what does the internal code do? k and v are key and value. On a call, if v is a defined value, then the what does the internal code do? k and v are key and value. On a call, if v is a defined value, then the
Expand Down

0 comments on commit 9a47f14

Please sign in to comment.