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
a3ff4d50
Commit
a3ff4d50
authored
Nov 06, 2015
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10534 from edx/andya/fix-studio-videos
Fix optimizing of draggabilly and json2
parents
7de9252e
7a146963
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
cms/static/cms/js/require-config.js
+0
-4
cms/static/coffee/spec/main.coffee
+0
-4
cms/static/js/utils/drag_and_drop.js
+2
-2
cms/static/js_test.yml
+0
-1
common/static/js/vendor/draggabilly.pkgd.js
+8
-1
No files found.
cms/static/cms/js/require-config.js
View file @
a3ff4d50
...
...
@@ -17,7 +17,6 @@ require.config({
paths
:
{
"domReady"
:
"js/vendor/domReady"
,
"gettext"
:
"/i18n"
,
"json2"
:
"js/vendor/json2"
,
"mustache"
:
"js/vendor/mustache"
,
"codemirror"
:
"js/vendor/codemirror-compressed"
,
"codemirror/stex"
:
"js/vendor/CodeMirror/stex"
,
...
...
@@ -96,9 +95,6 @@ require.config({
]
},
shim
:
{
"json2"
:
{
exports
:
"JSON"
},
"gettext"
:
{
exports
:
"gettext"
},
...
...
cms/static/coffee/spec/main.coffee
View file @
a3ff4d50
...
...
@@ -23,7 +23,6 @@ requirejs.config({
"jquery.simulate"
:
"xmodule_js/common_static/js/vendor/jquery.simulate"
,
"datepair"
:
"xmodule_js/common_static/js/vendor/timepicker/datepair"
,
"date"
:
"xmodule_js/common_static/js/vendor/date"
,
"json2"
:
"xmodule_js/common_static/js/vendor/json2"
,
"moment"
:
"xmodule_js/common_static/js/vendor/moment.min"
,
"moment-with-locales"
:
"xmodule_js/common_static/js/vendor/moment-with-locales.min"
,
"text"
:
"xmodule_js/common_static/js/vendor/requirejs/text"
,
...
...
@@ -59,9 +58,6 @@ requirejs.config({
"js/spec/test_utils"
:
"js/spec/test_utils"
,
}
shim
:
{
"json2"
:
{
exports
:
"JSON"
},
"gettext"
:
{
exports
:
"gettext"
},
...
...
cms/static/js/utils/drag_and_drop.js
View file @
a3ff4d50
define
([
"jquery"
,
"jquery.ui"
,
"underscore"
,
"
json2"
,
"
gettext"
,
"draggabilly"
,
define
([
"jquery"
,
"jquery.ui"
,
"underscore"
,
"gettext"
,
"draggabilly"
,
"js/utils/module"
,
"common/js/components/views/feedback_notification"
],
function
(
$
,
ui
,
_
,
JSON
,
gettext
,
Draggabilly
,
ModuleUtils
,
NotificationView
)
{
function
(
$
,
ui
,
_
,
gettext
,
Draggabilly
,
ModuleUtils
,
NotificationView
)
{
'use strict'
;
var
contentDragger
=
{
...
...
cms/static/js_test.yml
View file @
a3ff4d50
...
...
@@ -59,7 +59,6 @@ lib_paths:
-
xmodule_js/common_static/js/vendor/draggabilly.pkgd.js
-
xmodule_js/common_static/js/vendor/date.js
-
xmodule_js/common_static/js/vendor/domReady.js
-
xmodule_js/common_static/js/vendor/json2.js
-
xmodule_js/common_static/js/vendor/URI.min.js
-
xmodule_js/common_static/js/vendor/jquery.smooth-scroll.min.js
-
xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js
...
...
common/static/js/vendor/draggabilly.pkgd.js
View file @
a3ff4d50
...
...
@@ -1748,7 +1748,14 @@ return Unidragger;
if
(
typeof
define
==
'function'
&&
define
.
amd
)
{
// AMD
define
(
[
// Note: fixed by andy-armstrong to include a name for the definition
// so that this works when optimized using r.js. This is only an issue
// in Studio, as the LMS uses a namespaced version of RequireJS so
// this clause isn't reached.
// See http://requirejs.org/docs/errors.html#mismatch
define
(
'draggabilly'
,
[
'classie/classie'
,
'get-style-property/get-style-property'
,
'get-size/get-size'
,
...
...
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