Commit 8955b944 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #429 from gstof/batman-indentation

Batman: fix mixed indentation that cause coffee to generate incorrect js
parents 4dbafb90 ac6d76c8
// Generated by CoffeeScript 1.3.3 var Alfred,
(function() {
var Alfred,
__hasProp = {}.hasOwnProperty, __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Alfred = (function(_super) { Alfred = (function(_super) {
__extends(Alfred, _super); __extends(Alfred, _super);
...@@ -20,9 +18,9 @@ ...@@ -20,9 +18,9 @@
return Alfred; return Alfred;
})(Batman.App); })(Batman.App);
Alfred.TodosController = (function(_super) { Alfred.TodosController = (function(_super) {
__extends(TodosController, _super); __extends(TodosController, _super);
...@@ -41,9 +39,9 @@ ...@@ -41,9 +39,9 @@
return Alfred.Todo.get(this.get('currentTodoSet')); return Alfred.Todo.get(this.get('currentTodoSet'));
}); });
TodosController.prototype.all = function() {}; TodosController.prototype.all = function() {
return this.set('currentTodoSet', 'all');
TodosController.set('currentTodoSet', 'all'); };
TodosController.prototype.completed = function() { TodosController.prototype.completed = function() {
this.set('currentTodoSet', 'completed'); this.set('currentTodoSet', 'completed');
...@@ -148,9 +146,9 @@ ...@@ -148,9 +146,9 @@
return TodosController; return TodosController;
})(Batman.Controller); })(Batman.Controller);
Alfred.Todo = (function(_super) { Alfred.Todo = (function(_super) {
__extends(Todo, _super); __extends(Todo, _super);
...@@ -190,10 +188,8 @@ ...@@ -190,10 +188,8 @@
return Todo; return Todo;
})(Batman.Model); })(Batman.Model);
window.Alfred = Alfred;
Alfred.run(); window.Alfred = Alfred;
}).call(this); Alfred.run();
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