Run eslint autofixer on /cms
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
define([
|
||||
'backbone',
|
||||
'js/programs/views/program_creator_view',
|
||||
'js/programs/views/program_details_view',
|
||||
'js/programs/models/program_model'
|
||||
],
|
||||
function( Backbone, ProgramCreatorView, ProgramDetailsView, ProgramModel ) {
|
||||
'backbone',
|
||||
'js/programs/views/program_creator_view',
|
||||
'js/programs/views/program_details_view',
|
||||
'js/programs/models/program_model'
|
||||
],
|
||||
function(Backbone, ProgramCreatorView, ProgramDetailsView, ProgramModel) {
|
||||
'use strict';
|
||||
|
||||
return Backbone.Router.extend({
|
||||
@@ -15,7 +15,7 @@ define([
|
||||
':id': 'programDetails'
|
||||
},
|
||||
|
||||
initialize: function( options ) {
|
||||
initialize: function(options) {
|
||||
this.homeUrl = options.homeUrl;
|
||||
},
|
||||
|
||||
@@ -30,7 +30,7 @@ define([
|
||||
},
|
||||
|
||||
programCreator: function() {
|
||||
if ( this.programCreatorView ) {
|
||||
if (this.programCreatorView) {
|
||||
this.programCreatorView.destroy();
|
||||
}
|
||||
|
||||
@@ -39,20 +39,20 @@ define([
|
||||
});
|
||||
},
|
||||
|
||||
programDetails: function( id ) {
|
||||
this.programModel = new ProgramModel({
|
||||
programDetails: function(id) {
|
||||
this.programModel = new ProgramModel({
|
||||
id: id
|
||||
});
|
||||
|
||||
this.programModel.on( 'sync', this.loadProgramDetails, this );
|
||||
this.programModel.on('sync', this.loadProgramDetails, this);
|
||||
this.programModel.fetch();
|
||||
},
|
||||
|
||||
/**
|
||||
* Starts the router.
|
||||
*/
|
||||
start: function () {
|
||||
if ( !Backbone.history.started ) {
|
||||
start: function() {
|
||||
if (!Backbone.history.started) {
|
||||
Backbone.history.start({
|
||||
pushState: true,
|
||||
root: this.root
|
||||
|
||||
Reference in New Issue
Block a user