Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9c7ba418
Commit
9c7ba418
authored
Apr 12, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only add the xmodule.coffee file once per class, and put it before all other coffeescript files
parent
e5e0dc4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
common/lib/xmodule/xmodule/x_module.py
+5
-9
No files found.
common/lib/xmodule/xmodule/x_module.py
View file @
9c7ba418
...
@@ -45,17 +45,13 @@ class HTMLSnippet(object):
...
@@ -45,17 +45,13 @@ class HTMLSnippet(object):
# cdodge: We've moved the xmodule.coffee script from an outside directory into the xmodule area of common
# cdodge: We've moved the xmodule.coffee script from an outside directory into the xmodule area of common
# this means we need to make sure that all xmodules include this dependency which had been previously implicitly
# this means we need to make sure that all xmodules include this dependency which had been previously implicitly
# fulfilled in a different area of code
# fulfilled in a different area of code
js
=
cls
.
js
coffee
=
cls
.
js
.
setdefault
(
'coffee'
,
[])
fragment
=
resource_string
(
__name__
,
'js/src/xmodule.coffee'
)
if
js
is
Non
e
:
if
fragment
not
in
coffe
e
:
js
=
{}
coffee
.
insert
(
0
,
fragment
)
if
'coffee'
not
in
js
:
return
cls
.
js
js
[
'coffee'
]
=
[]
js
[
'coffee'
]
.
append
(
resource_string
(
__name__
,
'js/src/xmodule.coffee'
))
return
js
@classmethod
@classmethod
def
get_css
(
cls
):
def
get_css
(
cls
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment