Commit 3f1f9841 authored by Addy Osmani's avatar Addy Osmani

Merge pull request #416 from passy/closure-strike-fix

Closure app doesn't apply 'completed' class to items
parents 3cd9430f 7d809f93
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -47,7 +47,6 @@ todomvc.view.ToDoItemControlRenderer.prototype.setState =
if (element) {
switch (state) {
case goog.ui.Component.State.CHECKED:
this.enableClassName(control, 'done', enable);
this.getCheckboxElement(element).checked = enable;
break;
case goog.ui.Component.State.SELECTED:
......
......@@ -6,7 +6,7 @@
* @param checked whether the item is checked
*/
{template .toDoItem}
<li>
<li {if $checked}class="completed"{/if}>
<div class="view">
<input class="toggle" type="checkbox" {if $checked}checked{/if}>
<label>{$content}</label>
......
......@@ -6,7 +6,7 @@ An example making use of the [Closure toolkit](https://developers.google.com/clo
## Running
A third party build tool called [Plovr](http://plovr.com/) is used to make running and compiling the code easier. To serve the code for development purposes (the example should run in compiled mode without using Plovr), first download the latest stable version from the [Plovr Google Code project](http://code.google.com/p/plovr/downloads/list) (at the time of writing plovr-4b3caf2b7d84.jar). Copy the file into the build folder, rename it plovr.jar and run the following command from this folder -
A third party build tool called [Plovr](http://plovr.com/) is used to make running and compiling the code easier. To serve the code for development purposes (the example should run in compiled mode without using Plovr), first download the latest stable version from the [Plovr Google Code project](http://code.google.com/p/plovr/downloads/list) (at the time of writing plovr-eba786b34df9.jar). Copy the file into the build folder, rename it plovr.jar and run the following command from this folder -
`java -jar build/plovr.jar serve plovr.json`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment