@@ -58944,7 +58944,7 @@ angular.module('javascriptcom', ['ngResource', 'ngAnimate'])
5894458944 $httpProvider.defaults.cache = true;
5894558945 }]);
5894658946
58947- angular.module('javascriptcom').directive('jsChallenge', ['jsChallengeProgress', 'jsChallengeState ', function(jsChallengeProgress, jsChallengeState ) {
58947+ angular.module('javascriptcom').directive('jsChallenge', ['jsChallengeProgress', 'jsCourseState ', function(jsChallengeProgress, jsCourseState ) {
5894858948 return {
5894958949 templateUrl: 'javascripts/javascriptcom/templates/challenge.html',
5895058950 replace: true,
@@ -58953,8 +58953,8 @@ angular.module('javascriptcom').directive('jsChallenge', ['jsChallengeProgress',
5895358953 },
5895458954 bindToController: true,
5895558955 controllerAs: 'ctrl',
58956- controller: function jsChallengeController(jsChallengeProgress, jsChallengeState ) {
58957- this.state = jsChallengeState .state;
58956+ controller: function jsChallengeController(jsChallengeProgress, jsCourseState ) {
58957+ this.state = jsCourseState .state;
5895858958
5895958959 this.onSuccess = function onSuccess(challenge) {
5896058960 challenge.completed = true;
@@ -59016,7 +59016,7 @@ angular.module('javascriptcom').directive('jsCourse', ['_', 'jsCourseChallengeRe
5901659016 };
5901759017}]);
5901859018
59019- angular.module('javascriptcom').directive('jsInstructions', ['$compile', 'marked', 'jsChallengeState ', function($compile, marked, jsChallengeState ) {
59019+ angular.module('javascriptcom').directive('jsInstructions', ['$compile', 'marked', 'jsCourseState ', function($compile, marked, jsCourseState ) {
5902059020 return {
5902159021 templateUrl: 'javascripts/javascriptcom/templates/instructions.html',
5902259022 replace: true,
@@ -59055,7 +59055,7 @@ angular.module('javascriptcom')
5905559055);
5905659056
5905759057angular.module('javascriptcom')
59058- .filter('stateify', ['jsChallengeState ', '$interpolate', function Stateify(jsChallengeState , $interpolate) {
59058+ .filter('stateify', ['jsCourseState ', '$interpolate', function Stateify(jsCourseState , $interpolate) {
5905959059 return function(text, scope) {
5906059060 return $interpolate(text)(scope);
5906159061 };
@@ -59234,7 +59234,7 @@ angular.module('javascriptcom').factory('jsChallengeProgress', ['_', function(_)
5923459234 return state;
5923559235}]);
5923659236
59237- angular.module('javascriptcom').factory('jsChallengeState ', ['_', function(_) {
59237+ angular.module('javascriptcom').factory('jsCourseState ', ['_', function(_) {
5923859238
5923959239 return {
5924059240 state: {},
@@ -59307,7 +59307,7 @@ angular.module('javascriptcom').factory('jsHintCommand', ['$q', function($q) {
5930759307 return runHintCommand;
5930859308}]);
5930959309
59310- angular.module('javascriptcom').factory('jsJavaScriptCommand', ['$', '$q', 'jsExecutor', 'jsChallengeState ', 'jsCommandReport', function($, $q, jsExecutor, jsChallengeState , jsCommandReport) {
59310+ angular.module('javascriptcom').factory('jsJavaScriptCommand', ['$', '$q', 'jsExecutor', 'jsCourseState ', 'jsCommandReport', function($, $q, jsExecutor, jsCourseState , jsCommandReport) {
5931159311 function generateResponse(content, className) {
5931259312 return { content: $("<div class='console-msg "+(className ? 'console-msg--'+className : '')+"'>"+content+"</div>")[0] };
5931359313 }
@@ -59320,7 +59320,7 @@ angular.module('javascriptcom').factory('jsJavaScriptCommand', ['$', '$q', 'jsEx
5932059320 result = new jsCommandReport(challenge, results),
5932159321 output = result.output();
5932259322
59323- jsChallengeState .update(result.state());
59323+ jsCourseState .update(result.state());
5932459324
5932559325 response.push(generateResponse(output));
5932659326
0 commit comments