Run eslint autofixer on /cms

This commit is contained in:
Brian Jacobel
2016-08-05 12:28:50 -04:00
parent c7042c4879
commit d43e915dab
240 changed files with 7119 additions and 7257 deletions

View File

@@ -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