Fix the teams factory spec so it runs.
This commit is contained in:
@@ -11,7 +11,7 @@ define(["jquery", "backbone", "teams/js/teams_tab_factory"],
|
|||||||
topics: {results: []},
|
topics: {results: []},
|
||||||
topics_url: '',
|
topics_url: '',
|
||||||
teams_url: '',
|
teams_url: '',
|
||||||
maxTeamSize: 9999
|
maxTeamSize: 9999,
|
||||||
course_id: 'edX/DemoX/Demo_Course'
|
course_id: 'edX/DemoX/Demo_Course'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
;(function (define) {
|
;(function (define) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['jquery', 'teams/js/views/teams_tab'],
|
define(['jquery', 'underscore', 'backbone', 'teams/js/views/teams_tab'],
|
||||||
function ($, TeamsTabView) {
|
function ($, _, Backbone, TeamsTabView) {
|
||||||
return function (options) {
|
return function (options) {
|
||||||
var teamsTab = new TeamsTabView(_.extend(options, {el: $('.teams-content')}));
|
var teamsTab = new TeamsTabView(_.extend(options, {el: $('.teams-content')}));
|
||||||
teamsTab.render();
|
teamsTab.render();
|
||||||
|
|||||||
Reference in New Issue
Block a user