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
896933a3
Commit
896933a3
authored
Jan 24, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken IE
parent
acfafa65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/el_output.js
+6
-6
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/g_label_el_output.js
+6
-6
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
+10
-10
No files found.
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/el_output.js
View file @
896933a3
...
...
@@ -8,13 +8,13 @@ define('ElOutput', ['logme'], function (logme) {
function
ElOutput
(
config
,
state
)
{
if
(
$
.
isPlainObject
(
config
.
functions
.
function
))
{
processFuncObj
(
config
.
functions
.
function
);
}
else
if
(
$
.
isArray
(
config
.
functions
.
function
))
{
if
(
$
.
isPlainObject
(
config
.
functions
[
"function"
]
))
{
processFuncObj
(
config
.
functions
[
"function"
]
);
}
else
if
(
$
.
isArray
(
config
.
functions
[
"function"
]
))
{
(
function
(
c1
)
{
while
(
c1
<
config
.
functions
.
function
.
length
)
{
if
(
$
.
isPlainObject
(
config
.
functions
.
function
[
c1
]))
{
processFuncObj
(
config
.
functions
.
function
[
c1
]);
while
(
c1
<
config
.
functions
[
"function"
]
.
length
)
{
if
(
$
.
isPlainObject
(
config
.
functions
[
"function"
]
[
c1
]))
{
processFuncObj
(
config
.
functions
[
"function"
]
[
c1
]);
}
c1
+=
1
;
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/g_label_el_output.js
View file @
896933a3
...
...
@@ -6,13 +6,13 @@ define('GLabelElOutput', ['logme'], function (logme) {
return
GLabelElOutput
;
function
GLabelElOutput
(
config
,
state
)
{
if
(
$
.
isPlainObject
(
config
.
functions
.
function
))
{
processFuncObj
(
config
.
functions
.
function
);
}
else
if
(
$
.
isArray
(
config
.
functions
.
function
))
{
if
(
$
.
isPlainObject
(
config
.
functions
[
"function"
]
))
{
processFuncObj
(
config
.
functions
[
"function"
]
);
}
else
if
(
$
.
isArray
(
config
.
functions
[
"function"
]
))
{
(
function
(
c1
)
{
while
(
c1
<
config
.
functions
.
function
.
length
)
{
if
(
$
.
isPlainObject
(
config
.
functions
.
function
[
c1
]))
{
processFuncObj
(
config
.
functions
.
function
[
c1
]);
while
(
c1
<
config
.
functions
[
"function"
]
.
length
)
{
if
(
$
.
isPlainObject
(
config
.
functions
[
"function"
]
[
c1
]))
{
processFuncObj
(
config
.
functions
[
"function"
]
[
c1
]);
}
c1
+=
1
;
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
View file @
896933a3
...
...
@@ -838,33 +838,33 @@ define('Graph', ['logme'], function (logme) {
return
;
}
if
(
typeof
config
.
functions
.
function
===
'string'
)
{
if
(
typeof
config
.
functions
[
"function"
]
===
'string'
)
{
// If just one function string is present.
addFunction
(
config
.
functions
.
function
);
addFunction
(
config
.
functions
[
"function"
]
);
}
else
if
(
$
.
isPlainObject
(
config
.
functions
.
function
)
===
true
)
{
}
else
if
(
$
.
isPlainObject
(
config
.
functions
[
"function"
]
)
===
true
)
{
// If a function is present, but it also has properties
// defined.
callAddFunction
(
config
.
functions
.
function
);
callAddFunction
(
config
.
functions
[
"function"
]
);
}
else
if
(
$
.
isArray
(
config
.
functions
.
function
))
{
}
else
if
(
$
.
isArray
(
config
.
functions
[
"function"
]
))
{
// If more than one function is defined.
for
(
c1
=
0
;
c1
<
config
.
functions
.
function
.
length
;
c1
+=
1
)
{
for
(
c1
=
0
;
c1
<
config
.
functions
[
"function"
]
.
length
;
c1
+=
1
)
{
// For each definition, we must check if it is a simple
// string definition, or a complex one with properties.
if
(
typeof
config
.
functions
.
function
[
c1
]
===
'string'
)
{
if
(
typeof
config
.
functions
[
"function"
]
[
c1
]
===
'string'
)
{
// Simple string.
addFunction
(
config
.
functions
.
function
[
c1
]);
addFunction
(
config
.
functions
[
"function"
]
[
c1
]);
}
else
if
(
$
.
isPlainObject
(
config
.
functions
.
function
[
c1
]))
{
}
else
if
(
$
.
isPlainObject
(
config
.
functions
[
"function"
]
[
c1
]))
{
// Properties are present.
callAddFunction
(
config
.
functions
.
function
[
c1
]);
callAddFunction
(
config
.
functions
[
"function"
]
[
c1
]);
}
}
...
...
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