Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
ac6d76c8
Commit
ac6d76c8
authored
Feb 09, 2013
by
gstof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Batman: fix mixed indentation that cause coffee to generate incorrect js
parent
4dbafb90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
200 additions
and
204 deletions
+200
-204
labs/architecture-examples/batman/js/app.coffee
labs/architecture-examples/batman/js/app.coffee
+64
-64
labs/architecture-examples/batman/js/app.js
labs/architecture-examples/batman/js/app.js
+136
-140
No files found.
labs/architecture-examples/batman/js/app.coffee
View file @
ac6d76c8
labs/architecture-examples/batman/js/app.js
View file @
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
(
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment