Skip to content

Commit e9ab4b3

Browse files
committed
Fixed commens on main.js
1 parent 62d54e4 commit e9ab4b3

File tree

1 file changed

+4
-5
lines changed
  • Templates/All-In-One-Template/MySpaProject/MySpaProject.WebSpaDurandal/App/Main

1 file changed

+4
-5
lines changed

Templates/All-In-One-Template/MySpaProject/MySpaProject.WebSpaDurandal/App/Main/main.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//TODO: Move to framework?
1+
//Shortcuts
22
requirejs.config({
33
paths: {
44
'text': '../../Scripts/text',
@@ -16,17 +16,16 @@ define('knockout', function () { return ko; });
1616

1717
define(['durandal/system', 'durandal/app', 'durandal/viewLocator', 'durandal/viewEngine', 'durandal/activator', 'knockout'],
1818
function (system, app, viewLocator, viewEngine, activator, ko) {
19-
//system.debug(true); //TODO: remove in production code
19+
//system.debug(true); //Enable this line only in debug!
2020

2121
ko.punches.enableAll();
2222

23-
//TODO: Move to framework?
23+
//This is needed to use cshtml files as view
2424
viewEngine.convertViewIdToRequirePath = function (viewId) {
2525
return this.viewPlugin + '!/AbpAppView/Load?viewUrl=/App/Main/' + viewId + '.cshtml';
2626
};
2727

28-
//TODO: Is that good?
29-
//Assume true if not false
28+
//This is needed to return deffered as return values in methods like canActivate.
3029
activator.defaults.interpretResponse = function (value) {
3130
if (system.isObject(value)) {
3231
value = value.can == undefined ? true : value.can;

0 commit comments

Comments
 (0)