Skip to content

Commit

Permalink
Remove all trailing whitespace and add EOF newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 4, 2012
1 parent 2b99514 commit 176e3b3
Show file tree
Hide file tree
Showing 294 changed files with 589 additions and 589 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -6,4 +6,4 @@ indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
insert_final_newline = true
2 changes: 1 addition & 1 deletion architecture-examples/agilityjs/index.html
Expand Up @@ -54,4 +54,4 @@ <h1>todos</h1>
<script src="js/localstorage.js"></script>
<script src="js/app.js"></script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions architecture-examples/agilityjs/js/lib/agility.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -81,4 +81,4 @@ Backbone.sync = function(method, model, options) {
} else {
options.error("Record not found");
}
};
};
2 changes: 1 addition & 1 deletion architecture-examples/closure/build/closure-linter.version
@@ -1 +1 @@
2.3.5
2.3.5
2 changes: 1 addition & 1 deletion architecture-examples/closure/build/plovr.version
@@ -1 +1 @@
plovr-4b3caf2b7d84
plovr-4b3caf2b7d84
2 changes: 1 addition & 1 deletion architecture-examples/closure/index.html
Expand Up @@ -48,4 +48,4 @@ <h1>todos</h1>
<!-- The COMPILED development version (to serve the files run java -jar build/plovr.jar serve plovr.json) -->
<!-- <script type="text/javascript" src="http://localhost:9810/compile?id=todomvc&mode=ADVANCED"></script> -->
</body>
</html>
</html>
Expand Up @@ -46,4 +46,4 @@
*/
{template .clearCompletedInner}
Clear completed ({$number})
{/template}
{/template}
2 changes: 1 addition & 1 deletion architecture-examples/closure/plovr.json
Expand Up @@ -11,7 +11,7 @@
// Unfortunately, the Closure Library violates these in many places.
// "accessControls": "ERROR",
// "visibility": "ERROR"

"checkRegExp": "WARNING",
"checkTypes": "WARNING",
"checkVars": "WARNING",
Expand Down
4 changes: 2 additions & 2 deletions architecture-examples/closure/readme.md
Expand Up @@ -25,7 +25,7 @@ Whilst Plovr features many of the tools from the Closure toolkit, one very usefu

The linter must be installed before use, the installation package is included in the build folder and the instructions are available on the [linter homepage](https://developers.google.com/closure/utilities/). Once installed run the following to check for errors -

`find . -name *.js | xargs gjslint`
`find . -name *.js | xargs gjslint`

(or whatever floats your OSs boat)

Expand All @@ -47,4 +47,4 @@ Part of [TodoMVC](http://todomvc.com)

## License

Public Domain
Public Domain
4 changes: 2 additions & 2 deletions architecture-examples/dojo/css/app.css
Expand Up @@ -4,7 +4,7 @@
}

#todoapp.todos_selected #clear-completed,
#todoapp.todos_present #footer,
#todoapp.todos_present #footer,
#todoapp.todos_present #main,
.multiple .plural {
display: inherit;
Expand Down Expand Up @@ -79,7 +79,7 @@
margin: 0 !important;
}

/**
/**
* Inline edit box doesn't provide indication via class names
* when a box is 'live'. Style values are set manually. Use the
* opacity change as indicator... :( */
Expand Down
2 changes: 1 addition & 1 deletion architecture-examples/dojo/index.html
Expand Up @@ -17,7 +17,7 @@
<p>Double-click to edit a todo</p>
<p>Created by <a href="http://jamesthom.as/">James Thomas</a> and <a href="https://github.com/edchat">Ed Chatelain</a></p>
</footer>

<script src="../../assets/base.js"></script>
<script data-dojo-config="async:true, parseOnLoad:true, locale:'en', paths:{'todo':'../todo/'}, deps:['dojo/parser', 'todo/app']" src="js/lib/dojo/dojo.js"></script>
</body>
Expand Down
Expand Up @@ -20,4 +20,4 @@ define(
"decimalFormat-short": "000T"
}
//end v1.x content
);
);
2 changes: 1 addition & 1 deletion architecture-examples/dojo/js/lib/dojo/dojo.js

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions architecture-examples/dojo/js/todo/app.js
Expand Up @@ -12,7 +12,7 @@ define(["dojo/_base/declare",
"dojo/text!./app.html",
// Template Widgets
"todo/form/InlineEditBox", "todo/form/CheckBox", "dojox/mvc/Group", "dojox/mvc/Repeat", "dojox/mvc/Output"],
function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, lang, _event, on, domClass, domAttr,
function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, lang, _event, on, domClass, domAttr,
query, str, manager, keys, mvc, hash, connect, TodoModel, template) {

return declare("todo.app", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
Expand Down Expand Up @@ -64,10 +64,10 @@ define(["dojo/_base/declare",
this.onItemStatusUpdate();
},

/**
* Ensure application state reflects current
/**
* Ensure application state reflects current
* hash value after rendering model in the view.
*/
*/
startup: function () {
this.inherited(arguments);
this.onHashChange(hash());
Expand Down Expand Up @@ -115,7 +115,7 @@ define(["dojo/_base/declare",
* Also verify state of the "Mark All" box.
*/
onItemStatusUpdate: function () {
var completed = this.model.complete.get("value"),
var completed = this.model.complete.get("value"),
length = this.model.todos.get("length");

domClass.toggle(this.domNode, "todos_selected", completed > 0);
Expand All @@ -129,9 +129,9 @@ define(["dojo/_base/declare",

/**
* Event fired when user selects the "Mark All" checkbox.
* Update selection state of all the todos based upon current
* Update selection state of all the todos based upon current
* checked value.
*/
*/
onMarkAll: function () {
var checked = this.mark_all.checked;

Expand All @@ -146,7 +146,7 @@ define(["dojo/_base/declare",
* text value as new todo item in the model.
*/
onKeyPress: function (event) {
if (event.keyCode !== keys.ENTER ||
if (event.keyCode !== keys.ENTER ||
!str.trim(event.target.value).length) {
return;
}
Expand All @@ -163,28 +163,28 @@ define(["dojo/_base/declare",
*/
onRemove: function (event) {
this.model.todos.remove(domAttr.get(event.target, "data-model-id"));
},
},

/**
* Whenever the user double clicks the item label,
* Whenever the user double clicks the item label,
* set inline edit box to true.
*/
*/
onEdit: function (event) {
query(".inline_edit", event.target).forEach(function (inline_edit) {
manager.byNode(inline_edit).edit();
});
},

/**
* When the URI's hash value changes, modify the
* When the URI's hash value changes, modify the
* displayed list items to show either completed,
* remaining or all tasks.
* remaining or all tasks.
* Also highlight currently selected link value.
*/
*/
onHashChange: function (hash) {
var showIfDone = (hash === this.COMPLETED ? false :
var showIfDone = (hash === this.COMPLETED ? false :
(hash === this.ACTIVE? true : null));

query("#todo-list > li").forEach(lang.hitch(this, function (item, idx) {
var done = this.model.todos[idx].completed.get("value");
domClass.toggle(item, "hidden", done === showIfDone);
Expand Down
2 changes: 1 addition & 1 deletion architecture-examples/dojo/js/todo/form/CheckBox.js
@@ -1,4 +1,4 @@
/**
/**
* There's an incompatibility between the Dojo CheckBox and the Dojo MVC
* module. To use them together, I've manually tied the "checked" attribute
* value to push updates to the "value" attribute, which the Dojo MVC module
Expand Down
4 changes: 2 additions & 2 deletions architecture-examples/dojo/js/todo/model/TodoModel.js
Expand Up @@ -73,9 +73,9 @@ define(["dojo/_base/declare", "dojox/mvc/StatefulModel", "todo/store/LocalStorag
},

/**
* Search through current tasks list, removing all
* Search through current tasks list, removing all
* with empty titles.
*/
*/
deleteEmptyTasks: function () {
var len = this.todos.length, idx = 0;

Expand Down

0 comments on commit 176e3b3

Please sign in to comment.