Revert "Revert "Revert "Merge pull request #17325 from cpennington/switch-ass…"

This commit is contained in:
Calen Pennington
2018-02-28 11:06:39 -05:00
committed by GitHub
parent 8bcdcc522e
commit c45de5c32b
12 changed files with 75 additions and 262 deletions

View File

@@ -1,6 +1,2 @@
define(['js/base', 'cms/js/main', 'js/src/logger', 'datepair', 'accessibility',
'ieshim', 'tooltip_manager', 'lang_edx', 'js/models/course'],
function() {
'use strict';
}
);
'ieshim', 'tooltip_manager', 'lang_edx', 'js/models/course']);

View File

@@ -1,7 +0,0 @@
define(
['js/factories/asset_index', 'common/js/utils/page_factory', 'js/factories/base'],
function(AssetIndexFactory, invokePageFactory) {
'use strict';
invokePageFactory('AssetIndexFactory', AssetIndexFactory);
}
);

View File

@@ -1,11 +0,0 @@
(function(define) {
'use strict';
define(
['js/models/course'],
function(ContextCourse) {
window.course = new ContextCourse(window.pageFactoryArguments.ContextCourse[0]);
}
);
}).call(this, define || RequireJS.define);

View File

@@ -1,5 +1,5 @@
define(
['js/factories/login', 'common/js/utils/page_factory', 'js/factories/base'],
['js/factories/login', 'common/js/utils/page_factory'],
function(LoginFactory, invokePageFactory) {
'use strict';
invokePageFactory('LoginFactory', LoginFactory);

View File

@@ -1,7 +1,5 @@
define(['domReady', 'jquery', 'jquery.smoothScroll'],
require(['domReady', 'jquery', 'jquery.smoothScroll'],
function(domReady, $) {
'use strict';
var toggleSock = function(e) {
e.preventDefault();
@@ -35,5 +33,4 @@ define(['domReady', 'jquery', 'jquery.smoothScroll'],
// toggling footer additional support
$('.cta-show-sock').bind('click', toggleSock);
});
}
);
});