Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-dashboard
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-analytics-dashboard
Commits
e83f1e2d
Commit
e83f1e2d
authored
Jul 21, 2016
by
Anjali Pal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix array-call-back-return violation
parent
40bccffa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
.eslintrc.json
+4
-1
analytics_dashboard/static/apps/learners/common/utils.js
+1
-1
analytics_dashboard/static/js/load/init-models.js
+2
-2
No files found.
.eslintrc.json
View file @
e83f1e2d
...
...
@@ -11,8 +11,10 @@
"no-new"
:
"off"
,
"no-param-reassign"
:
"off"
,
"no-undef"
:
"off"
,
"array-callback-return"
:
"off"
,
//
"array-callback-return"
:
"off"
,
"no-restricted-syntax"
:
"off"
,
"global-require"
:
"off"
//
global-require
turned
off
due
to
https
:
//github.com/eslint/eslint/issues/
4812
.
Fixed
in
v
3.1
.
1
//
consider
turning
rule
on
after
upgrading
to
ESLint
3.1
.
1
}
}
\ No newline at end of file
analytics_dashboard/static/apps/learners/common/utils.js
View file @
e83f1e2d
...
...
@@ -36,7 +36,7 @@ define(function(require) { // eslint-disable-line no-unused-vars
* the transformed events via 'triggerMethod'.
*/
mapEvents
:
function
(
originator
,
transformFunctions
,
forwarder
)
{
Object
.
keys
(
transformFunctions
).
map
(
function
(
eventName
)
{
Object
.
keys
(
transformFunctions
).
forEach
(
function
(
eventName
)
{
forwarder
.
listenTo
(
originator
,
eventName
,
function
()
{
var
transformFunc
=
transformFunctions
[
eventName
],
newEventArguments
=
transformFunc
.
apply
(
forwarder
,
arguments
);
...
...
analytics_dashboard/static/js/load/init-models.js
View file @
e83f1e2d
...
...
@@ -10,12 +10,12 @@ define(['jquery', 'models/course-model', 'models/tracking-model', 'models/user-m
trackingModel
=
new
TrackingModel
(),
userModel
=
new
UserModel
();
/*
jshint ignore:start
*/
/*
eslint-disable no-undef
*/
// initModelData is set by the Django template at render time.
courseModel
.
set
(
initModelData
.
course
);
trackingModel
.
set
(
initModelData
.
tracking
);
userModel
.
set
(
initModelData
.
user
);
/*
jshint ignore:end
*/
/*
eslint-enable no-undef
*/
return
{
courseModel
:
courseModel
,
...
...
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