Skip to content

Commit

Permalink
indentation and spacing for comments. Removed chrome = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavgujjar committed Aug 26, 2013
1 parent 8d14fad commit 6028ac9
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion labs/dependency-examples/durandal/index.html
Expand Up @@ -2,7 +2,7 @@
<html lang="en" data-framework="durandal">
<head>
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<title>Durandal • TodoMVC</title>
<link rel="stylesheet" href="bower_components/todomvc-common/base.css">
<link rel="stylesheet" href="css/app.css">
Expand Down
4 changes: 2 additions & 2 deletions labs/dependency-examples/durandal/js/viewmodels/list.js
Expand Up @@ -16,7 +16,7 @@ define([
var self = this;

self.activate = function () {
//initialize the show mode
// initialize the show mode
var filter = shell.filter;

if (filter === undefined) {
Expand All @@ -25,7 +25,7 @@ define([

self.showMode(filter);

// // check local storage for todos
// check local storage for todos
var todosFromlocalStorage = ko.utils.parseJson(localStorage.getItem('todos-durandal'));

todosFromlocalStorage = ko.utils.arrayMap(todosFromlocalStorage, function (todo) {
Expand Down
62 changes: 31 additions & 31 deletions labs/dependency-examples/durandal/js/views/list.html
@@ -1,36 +1,36 @@
<section id="main" data-bind="visible: todos().length">
<div>
<input id="toggle-all" data-bind="checked: allCompleted" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
</div>
<ul id="todo-list" data-bind="foreach: filteredTodos">
<li data-bind="css: { completed: completed, editing: $root.isThisItemBeingEdited($data) }">
<div>
<input id="toggle-all" data-bind="checked: allCompleted" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
</div>
<ul id="todo-list" data-bind="foreach: filteredTodos">
<li data-bind="css: { completed: completed, editing: $root.isThisItemBeingEdited($data) }">
<div class="view">
<input class="toggle" data-bind="checked: completed" type="checkbox">
<label data-bind="text: title, event: { dblclick: $root.editItem }"></label>
<button class="destroy" data-bind="click: $root.remove"></button>
</div>
<input class="edit" data-bind="value: $root.editTitle, valueUpdate: 'afterkeydown', escKey : $root.cancelEditing, enterKey: $root.stopEditing, selectAndFocus: $root.isThisItemBeingEdited($data), event: { blur: $root.stopEditing }">
</li>
</ul>
<input class="toggle" data-bind="checked: completed" type="checkbox">
<label data-bind="text: title, event: { dblclick: $root.editItem }"></label>
<button class="destroy" data-bind="click: $root.remove"></button>
</div>
<input class="edit" data-bind="value: $root.editTitle, valueUpdate: 'afterkeydown', escKey : $root.cancelEditing, enterKey: $root.stopEditing, selectAndFocus: $root.isThisItemBeingEdited($data), event: { blur: $root.stopEditing }">
</li>
</ul>
</section>
<footer id="footer" data-bind="visible: completedCount() || remainingCount()">
<span id="todo-count">
<strong data-bind="text: remainingCount">0</strong>
<span data-bind="text: getLabel( remainingCount )"></span> left
</span>
<ul id="filters">
<li>
<a data-bind="css: { selected: showMode() == 'all' }" href="#/all" >All</a>
</li>
<li>
<a data-bind="css: { selected: showMode() == 'active' }" href="#/active">Active</a>
</li>
<li>
<a data-bind="css: { selected: showMode() == 'completed' }" href="#/completed">Completed</a>
</li>
</ul>
<button id="clear-completed" data-bind="visible: completedCount, click: removeCompleted">
Clear completed (<span data-bind="text: completedCount"></span>)
</button>
<span id="todo-count">
<strong data-bind="text: remainingCount">0</strong>
<span data-bind="text: getLabel( remainingCount )"></span> left
</span>
<ul id="filters">
<li>
<a data-bind="css: { selected: showMode() == 'all' }" href="#/all" >All</a>
</li>
<li>
<a data-bind="css: { selected: showMode() == 'active' }" href="#/active">Active</a>
</li>
<li>
<a data-bind="css: { selected: showMode() == 'completed' }" href="#/completed">Completed</a>
</li>
</ul>
<button id="clear-completed" data-bind="visible: completedCount, click: removeCompleted">
Clear completed (<span data-bind="text: completedCount"></span>)
</button>
</footer>
6 changes: 3 additions & 3 deletions labs/dependency-examples/durandal/js/views/shell.html
@@ -1,9 +1,9 @@
<div>
<div>
<!--ko compose: {
model: router.activeItem, //wiring the router
afterCompose: router.afterCompose, //wiring the router
cacheViews:true //telling composition to keep views in the dom, and reuse them (only a good idea with singleton view models)
model: router.activeItem, // wiring the router
afterCompose: router.afterCompose, // wiring the router
cacheViews:true // telling composition to keep views in the dom, and reuse them (only a good idea with singleton view models)
}--><!--/ko-->
</div>
<footer id="info">
Expand Down

0 comments on commit 6028ac9

Please sign in to comment.