Commit e83f1e2d by Anjali Pal

Fix array-call-back-return violation

parent 40bccffa
......@@ -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 v3.1.1
// consider turning rule on after upgrading to ESLint 3.1.1
}
}
\ No newline at end of file
......@@ -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);
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment